2016/12/16分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Notifications see frozen SQL string.
- RuntimeErrors are no longer translated to ActiveRecord::StatementInvalid.
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
の修正です。
ActiveRecord::ConnectionAdapters::DatabaseStatements#to_sql
で返す値をfreezeするよう修正しています。
ActiveSupport::Notifications
内でpayloadのデータを変更出来ないようにする為、との事です。合わせて、#translate_exception
メソッド内でエラーを全てActiveRecord::StatementInvalid
にラップしていたのを、RuntimeError
についてはそのままRuntimeError
を返すよう修正しています。
Throw friendly error message when fixture is not a hash
activerecord/lib/active_record/fixture_set/file.rb
の修正です。
fixtureのフォーマットがおかしい(Hash
じゃない)場合に、問題がある箇所の詳細な情報をエラーに表示するよう修正しています。
Merge pull request #27368 from matthewd/doubled-callbacks
activesupport/lib/active_support/callbacks.rb
の修正です。
around callbackの中で複数回yieldの実行を出来るよう修正しています。
元々出来るようになっていたのですが、Tighten the backtrace pollution from passing through callbacks、Callbacks: leave less lines in the backtraceの対応の影響で出来なくなってしまっていたので、再度実行出来るようにしたとの事です。