2023/12/11分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actiontext/CHANGELOG.md
actionmailbox/CHANGELOG.md
Fix polymorphic belongs_to
to correctly use parent's query_constraints
activerecord/lib/active_record/reflection.rb
の修正です。
polymorphic belongs_to
associationを使用しているmodelで、親associationをloadする際に親で指定しているquery_constraints
が使用されないバグがあったのを修正しています。
Fix wrong example code: active_job.message_serializer
rails guideのConfiguring Rails Applications
の修正です。
config.active_support.message_serializer
について説明している箇所で、値を設定するexampleのconfig名が誤っていたのを修正しています。
Fix tests for status code change on Rack HEAD
actionpack/lib/action_dispatch/testing/assertion_response.rb
の修正です。
Rackからstatus codeを取得するのにRack::Utils::SYMBOL_TO_STATUS_CODE
を使用していたのをRack::Utils.status_code
を使用するよう修正しています。
RackがUpdate HTTP status codes and associated symbolsででstatus codeの変更を行い古い値をdeprecatedに変更しました。しかし、Rack::Utils::SYMBOL_TO_STATUS_CODE
を直接参照してしまうと、変更後の値になってしまいテストがfailしてしまうため、deprecatedになった古い値を参照出来るようRack::Utils.status_code
を使用するようにしています。
Fix Preloader
to not generate a query for already loaded association with query_constraints
activerecord/lib/active_record/associations/preloader/association.rb
の修正です。
ActiveRecord::Associations::Preloader
にquery_constraints
を使用しているload済みのassociationを指定した場合に、不要なSQLを実行しないよう修正しています。
Merge pull request #50299 from chaadow/fix_actiontext_table_prefix
Action Textの修正です。
Action Textで使用するtable名が全て固定のテーブル名だったのを、ActiveRecord::Base.table_name_prefix
に設定されているprefixを使用したテーブル名になるよう修正しています。
Merge pull request #50300 from chaadow/fix_actionmailbox_table_prefix
Action Mailboxの修正です。
Action Mailboxで使用するtable名が全て固定のテーブル名だったのを、ActiveRecord::Base.table_name_prefix
に設定されているprefixを使用したテーブル名になるよう修正しています。