aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-07-18 10:41:39 +0200
committerXavier Noria <fxn@hashref.com>2016-07-18 10:45:54 +0200
commitdccc23a503e461820603f3e6901f2321617e7018 (patch)
tree00e5a58a8a290d38fa1b73a85f6116039b660298 /activerecord/lib/active_record/core.rb
parentb097a48c5f237d6ea30e291824fb39872331d29f (diff)
downloadrails-dccc23a503e461820603f3e6901f2321617e7018.tar.gz
rails-dccc23a503e461820603f3e6901f2321617e7018.tar.bz2
rails-dccc23a503e461820603f3e6901f2321617e7018.zip
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.
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb4
1 files changed, 4 insertions, 0 deletions
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