2016/07/18分のコミットです。
CHANGELOGへの追加はありませんでした。
Remove mattr_accessor for deprecated config error_on_ignored_order_or_limit
.
activerecord/lib/active_record/core.rb
の修正です。
adds support for limits in batch processingで.error_on_ignored_order_or_limit=
を使用した場合deprecateメッセージを表示するようになっていたのですが、.error_on_ignored_order_or_limit
の方の対応が漏れていた為、error_on_ignored_order_or_limit
を使用した場合もdeprecateメッセージを表示するよう修正しています。
Fix documentation of error_on_ignored_order
option
rails guideのConfiguring Rails Applications
の修正です。
config.active_record.error_on_ignored_order_or_limit
オプションについての説明を削除し、代わりにconfig.active_record.error_on_ignored_order
についての説明を追加しています。
adds coverage for the deprecation of error_on_ignored_order
activerecord/test/cases/batches_test.rb
の修正です。
error_on_ignored_order_or_limit
を使用した場合にdeprecateメッセージが表示される事を確認するテストを追加しています。
deprecates the error_on_ignored_order_or_limit instance reader
activerecord/lib/active_record/core.rb
の修正です。
#error_on_ignored_order_or_limit
を使用した場合に、deprecateメッセージが表示されるよう修正しています。
元々error_on_ignored_order_or_limit
はmattr_accessor
を使用して定義されており、クラスメソッド / インスタンスメソッド両方があった為、インスタンスメソッドを使用した場合もdeprecateメッセージを表示するようにしています。