なるようになるブログ

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

rails commit log流し読み(2018/01/14)

2018/01/14分のコミットです。

CHANGELOGへの追加はありませんでした。


Don't pass garbage args to alias tracker

activerecord/lib/active_record/associations/alias_tracker.rbactiverecord/lib/active_record/relation/finder_methods.rbの終了です。

join dependency構築する際に、alias trackerに使用しないオブジェクト(Arel::Nodes::Joinインスタンス以外のオブジェクト)も渡すようになっていたのを、Arel::Nodes::Joinインスタンスのみ渡すよう修正しています。


Don't need to pass manager to convert_join_strings_to_ast

activerecord/lib/active_record/relation/query_methods.rbの終了です。

convert_join_strings_to_astメソッドから不要なtable引数を削除しています。

RelationがArel tableの情報を保持しており、そちらを使用すれば良いため。


Change test case name to FormatValidationTest

activemodel/test/cases/validations/format_validation_test.rbの修正です。

validates_format_ofメソッドについてのテストを記載しているテストのクラス名がPresenceValidationTestになっていたのをFormatValidationTestに修正しています。