2018/11/03分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #34177 from rmacklin/convert-actioncable-to-es2015
Action Cableの修正です。
Action CableのソースコードがCoffeeScriptで書かれていたのを、CoffeeScriptをやめてES2015を使用するよう修正しています。
circular dependencyに関するwarnings出ている状態で、まだ対応は続いている状態です。続きはこちら。
Checking boundable not only IN
clause but also NOT IN
clause
Active Recordの修正です。
boundableかどうかのチェックをIN句でだけ行っていたのを、NOT IN
についても行うよう修正しています。
Don't pass unused connection
to FixtureSet.new
activerecord/lib/active_record/fixtures.rb
の修正です。
ActiveRecord::FixtureSet.new
の引数から使用していないconnection
引数を削除しています。
Don't pass useless table_name
to ModelMetadata.new
activerecord/lib/active_record/fixture_set/model_metadata.rb
、
activerecord/lib/active_record/fixture_set/table_rows.rb
、
activerecord/lib/active_record/fixtures.rb
の修正です。
ActiveRecord::FixtureSet::ModelMetadata.new
の引数から不要なtable_name
引数を削除しています。
table_name
はmodel_class
引数が指定された場合のみ使用されているのですが、model_class
が渡された場合、table_name
はmodel_class
から取得出来る(model_class.table_name
)為。
Move resolve_sti_reflections
which is table row related code into TableRow
activerecord/lib/active_record/fixture_set/table_row.rb
、
activerecord/lib/active_record/fixture_set/table_rows.rb
の修正です。
resolve_sti_reflections
メソッドをActiveRecord::FixtureSet::TableRows
からActiveRecord::FixtureSet::TableRow
に移動しています。rowsではなく、rowに関する処理の為。