なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2018/11/03)

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.rbactiverecord/lib/active_record/fixture_set/table_rows.rbactiverecord/lib/active_record/fixtures.rbの修正です。

ActiveRecord::FixtureSet::ModelMetadata.newの引数から不要なtable_name引数を削除しています。

table_namemodel_class引数が指定された場合のみ使用されているのですが、model_classが渡された場合、table_namemodel_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.rbactiverecord/lib/active_record/fixture_set/table_rows.rbの修正です。

resolve_sti_reflectionsメソッドをActiveRecord::FixtureSet::TableRowsからActiveRecord::FixtureSet::TableRowに移動しています。rowsではなく、rowに関する処理の為。