2019/04/29分のコミットです。
CHANGELOGへの追加はありませんでした。
Improve error message of ActiveSupport delegate
activesupport/lib/active_support/core_ext/module/delegation.rb
の修正です。
delegate
メソッドにto
引数が指定されなかった場合のエラーメッセージで、to
引数についてoptions hashと説明していたのを、keyword argumentに修正しています。
Update delegate to use newer Ruby syntaxでkeyword argumentを使用するよう修正されているため。
Extract _raise_record_not_touched_error
activerecord/lib/active_record/persistence.rb
、
activerecord/lib/active_record/touch_later.rb
の修正です。
persistしていないrecordに対してtouch
を呼び出し際に使用するエラーメッセージの生成処理を、処理毎に実装していたのを、メソッドに切り出して共通で使用するよう修正しています。