2026/01/09分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Enable Arel::TreeManagers to use Table's engine
ACtive Recordの修正です。
Arel::TreeManagerの初期化メソッドにTableオブジェクトを渡せるよう対応&その値をインスタンス変数で保持するようにして、サブクラスでその値を使用出来るよう修正しています。元々はto_sqlを実行するのにTableオブジェクトから取得するengineが必要だったのですが、デフォルトではTable.engine(ActiveRecord::Base)になっており、複数のDB adapterを使用している場合に、to_sqlを実行するたびに明示的にengineを渡す必要があった為、それを初期化処理だけで済ますようにする為。
Fix postgresql/schema_dumper relation_name appending the wrong schema_name
activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rbの修正です。
PostgreSQL adapterでforeign_key referencesをschemaにdumpする際、異なるschmaのカラムが使用されている場合、誤ったschema名で出力されてしまうバグがあったのを修正しています。
Merge pull request #56427 from callmesangio/fix-humanize-docs
activesupport/lib/active_support/core_ext/string/inflections.rb、
activesupport/lib/active_support/inflector/methods.rbのdocの修正です。
ActiveSupport::Inflector.humanize及びString#humanizeメソッドのdoc無いの挙動の説明が誤った内容になっていたのを修正しています。
Merge pull request #56487 from callmesangio/improve-auth-gen-test-template
railties/lib/rails/generators/test_unit/authentication/templates/test/controllers/sessions_controller_test.rb.ttの修正です。
destroyのテストで、削除対象のユーザを取得するのにテスト内で新たに取得していたのを、setupで取得した値を使用するよう修正しています。
Merge pull request #56529 from yujiteshima/fix-migration-default-docs
rails guideのActive Record Migrationsの修正です。
Column Modifiersセクションのdefaultオプションについて説明している箇所に、既存のレコードの扱いは使用しているDBによって異なる旨説明を追加しています。
Merge pull request #56523 from stevepolitodesign/sp-cl-libvips
railties/lib/rails/generators/app_base.rbの修正です。
Active Storageを使用している場合、ci.ymlでインストールするパッケージにlibvipsを含むよう修正しています。
Deprecate protect_from_forgery without explicit strategy
actionpack/lib/action_controller/metal/request_forgery_protection.rbの修正です。
protect_from_forgeryをstrategy(:withオプション)の指定無しで実行するのをdeprecatedにしています。strategyの指定が無い場合、現在は:null_sessionの挙動になるのですが、これがconfig.action_controller.default_protect_from_forgeryのデフォルト(:exception)と異なり混乱の元になる為、同じ挙動にしよう、という方針になりました。そのための最初の対応として、指定無しをdeprecatedにしています。最終的には、デフォルトを:exceptionにする方針、との事です
Merge pull request #56251 from shivabhusal/adds-new-test-template-nov
guides/bug_report_templates/action_view.rbの修正です。
Action Viewのbug report templateに、template-fileをrenderする場合のexampleを追加しています。
Remove default_uniqueness_comparison which is no longer used
activerecord/lib/active_record/connection_adapters/abstract_adapter.rbの修正です。
使用していないdefault_uniqueness_comparisonメソッドを削除しています。
actiontext/actiontext.gemspecの修正です、
action_text-trix gemを最新バージョンに更新しています。
Remove X-XSS-Protection from default headers
railties/lib/rails/application/configuration.rbの修正です。
Railsがデフォルトで設定するheaderからX-XSS-Protectionを削除しています。メジャーなすべてのブラウザがもうサポートしておらず、設定する意味が無い為。
Merge pull request #56546 from khasinski/fix-errors-added-with-callback-options
activemodel/lib/active_model/error.rbの修正です。
ActiveModel::Errors#added?にcallback/messageオプションを指定して使用した場合に、エラーが追加されているのにメソッドがfalseを返してしまうバグがあったのを修正しています。