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の対応の影響で出来なくなってしまっていたので、再度実行出来るようにしたとの事です。