2024/01/25分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix eager loading of composite primary key associations
activerecord/lib/active_record/associations/join_dependency.rbの修正です。
composite primary keysを使用している + 同じkeyを異なるassociationで使用している場合に、そのassociationに対するeager loadが正しく行えないバグがあったのを修正しています。
Use an anonymous block parameter in Module#delegate
activesupport/lib/active_support/core_ext/module/delegation.rbの修正です。
Module#delegateでblock parameterの指定にanonymous block parameterを使用するよう修正しています。...で引数を指定した場合と同じ挙動にする為。
Refactor Module#delegate inside ActiveSupport::Delegation
Active Supportの修正です。
Module#delegateの実装を、新規にActiveSupport::Delegationmoduleを追加しそちらの中に移動しています。Module#delegateはActiveSupport::Delegationを呼び出すだけになっています。
Module#delegate stop accepting the private as: parameter
Rails内部で使うだけの想定だったModule#delegateのas:パラメータを削除しています。delegate処理の実装がActiveSupport::Delegationに移った事により、Module#delegateに引数を追加する事無く内部用の独自処理を追加出来る用になったため。
Replace some low value dynamic delegator by handcrafted ones
Action Cableの修正です。
delegateしたいメソッドが1~2しか無かった箇所について、delegateを使わず必要なメソッドをハードコーディングするよう修正しています。
ActiveSupport::Delegation optimize self.class delegation
Active Supportの修正です。
self.classに対するdelegate処理の場合、receiverがnilかどうかのチェックを行わないよう修正しています。self.classがnilになる事は無い為。
ActiveSupport::Delegation allow to specify the signature
Active Supportの修正です。
delegate処理でメソッドのsignatureを明示的に指定出来るよう修正しています。signatureがわかっている場合に、signatureのチェック処理を行わずに済むようにする為。
Merge pull request #50817 from joshuay03/add-queue-with-priority-to-activejob-docs
rails guideのActive Job Basicsの修正です。
jobのpriorityを設定する方法について説明した、Priorityを追加しています。