2020/08/24分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Add #delete_by
into skipping callback methods [skip ci]
rails guideのActive Record Callbacks
の修正です。
callbackが実行されないメソッドの一覧にdelete_by
を追加しています。
Deduplicate multiple values when assigning
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
select_values
、order_values
の重複排除を、値を指定した際に行うよう修正しています。
Avoid redundant table alias if arel_table.name == table_name
activerecord/lib/active_record/table_metadata.rb
の修正です。
arel_table
とtable_name`が一致している場合に、不要なaliasの取得処理を行わないよう修正しています。
Remove config class attribute from TestFixtures
activerecord/lib/active_record/test_fixtures.rb
の修正です。
TestFixtures
から使用していないclass attributeを削除しています。
Merge pull request #39685 from kamipo/store_full_class_name
activerecord/lib/active_record/inheritance.rb
の修正です。
demodulizedしたclass nameの保存がSTI typeでだけ行われていたのを、polymorphic typeでも同様に行うよう修正しています。
Refactor references_eager_loaded_tables?
to fewer allocation
activerecord/lib/active_record/relation.rb
の修正です。
references_eager_loaded_tables?
メソッドでオブジェクトの生成数を減らすようリファクタリングしています。
Call uniq! on the reorder
arguments.
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
reorder
の引数に対してuniq!
を実行して重複排除するよう修正しています。
元々重複排除するようになっていたのですが、Deduplicate multiple values when assigningの対応で排除されなくなってしまっていたので、再度されるよう対応しています。
Build only join_sources
in references_eager_loaded_tables?
activerecord/lib/active_record/relation.rb
、
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
references_eager_loaded_tables?
メソッドで、join_sources
のみをbuildするよう修正しています。他のarelの値は不要な為。