2023/04/13分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix associations associated with a CPK model by id attribute
activerecord/lib/active_record/associations/association_scope.rb、
activerecord/lib/active_record/reflection.rbの修正です。
composite primary keyを使用しているmodelとid attributeで関連付けされているassociationがあった場合に、associationの取得処理にid attributeを使用してデータの取得処理が行われるよ修正しています。
Fix replacing foreign key for a CPK association by id attribute
activerecord/lib/active_record/autosave_association.rbの修正です。
composite primary keyを使用しているmodelとid attributeで関連付けされているassociationがあった場合に、foreign keyのreplaceにid attributeが使用されるよう修正しています。
Ensure that ids_writer and ids_reader is working for CPK
activerecord/lib/active_record/associations/collection_association.rb、
activerecord/lib/active_record/relation/calculations.rbの修正です。
ids_writer及びids_readerメソッドで、composite primary keyを扱えるよう修正しています。
fixed comment for example sql statement
activerecord/lib/active_record/relation/calculations.rbのdocの修正です。
idsメソッド内のSQLの実行結果が実際の結果と異なっていたのを修正しています。
:nail_care: Clean up changelog entry for #47877
actionpack/CHANGELOG.mdの修正です。
Print source location when inspecting routesのentryのフォーマットを修正しています。
Merge pull request #47928 from Shopify/pm/cpk-delete
activerecord/lib/active_record/associations/has_many_association.rbの修正です。
composite primary keyを使用しているmodelからassociationの削除処理が行えるよう修正しています。