From dccc23a503e461820603f3e6901f2321617e7018 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 18 Jul 2016 10:41:39 +0200 Subject: deprecates the error_on_ignored_order_or_limit instance reader Albeit the previous existence of this method is not seen in the patch itself, the declaration mattr_accessor :error_on_ignored_order_or_limit, instance_writer: false was present before. It was removed recently in 210012f. --- activerecord/lib/active_record/core.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index c46cafdd09..3e3a7679ac 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -86,6 +86,10 @@ module ActiveRecord self.error_on_ignored_order end + def error_on_ignored_order_or_limit + self.class.error_on_ignored_order_or_limit + end + def self.error_on_ignored_order_or_limit=(value) ActiveSupport::Deprecation.warn(<<-MSG.squish) The flag error_on_ignored_order_or_limit is deprecated. Limits are -- cgit v1.2.3