2022/05/29分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Make find_nth_from_last
more performant when using custom order
activerecord/lib/active_record/relation/finder_methods.rb
の修正です。
find_nth_from_last
で全てのレコードのロードが行われないよう修正しています。
Fix with_options bug when first argument is a Proc
activesupport/lib/active_support/option_merger.rb
の修正です。
with_options
内で定義したメソッドの最初の引数がProc
の場合に、ArgumentError
がraiseしてしまうバグがあったのを修正しています。
Fix eager loading models without primary keys
activerecord/lib/active_record/associations/join_dependency.rb
の修正です。
primary keyが定義されていないmodelに対するeager loadingが正しく行われないバグがあったのを修正しています。
Merge pull request #45191 from jonathanhefner/predicate_for_validation_context-optimization
activemodel/lib/active_model/validations.rb
の修正です。
contextual validationsの性能改善の対応を行っています。
Document ActionDispatch::TestResponse#parsed_body [skip ci]
actionpack/lib/action_dispatch/testing/test_response.rb
のdocの修正です。
ActionDispatch::TestResponse#parsed_body
メソッドにドキュメントを追加しています。
small error in first example of pluck section
rails guideのActive Record Query Interface
の修正です。
pluck
メソッドの実行結果の例が実際の結果と異なっていたのを修正しています。
removed redundant backtick symbol from sql examples of rails guides
rails guideのActive Record Query Interface
の修正です。
各メソッドの実行結果の例のSQLから不要なbacktickを削除しています。