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の値は不要な為。