なるようになるブログ

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

rails commit log流し読み(2021/05/24)

2021/05/24分のコミットです。

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


Enhancement: refactor and add tests to the query methods argument errors

activerecord/lib/active_record/relation/query_methods.rbの修正です。

各メソッドで不正な引数が指定された場合のエラーメッセージで、メソッド名を表示するのに__callee__を使用するよう修正しています。


Add precision to Active Storage timestamps where supported

activestorage/db/migrate/20170806125915_create_active_storage_tables.rbの修正です。

Active Storage用のテーブルで、サポートしている場合、created_atにprecisionを指定するよう修正しています。


Test no arguments error message for both left_joins and left_outer_joins

activerecord/test/cases/relations_test.rbの修正です。

left_joinsleft_outer_joinsに引数をしなかった場合のテストで、エラーメッセージまでチェックするよう修正しています。


Minor: Typo in ActiveSupport::SecureCompareRotator doc

activesupport/lib/active_support/secure_compare_rotator.rbのdocの修正です。

SecureCompareRotatorのdocでSecureCompareRotatorSecureComparerotatorにタイポしていたのを修正しています。