aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-07-18 09:48:37 +0200
committerGitHub <noreply@github.com>2016-07-18 09:48:37 +0200
commit8f84d092c486f2862c1a1ba3c6e758db9608b575 (patch)
tree6101e6e33cc908bf0cb93b2fbaa8bfdc858b115f /activerecord/lib
parent849f79671b9efc014dddaa87b9f83844859e339e (diff)
parenta3c27be98ba158d145b1ca1f2f7efc6a88330ddf (diff)
downloadrails-8f84d092c486f2862c1a1ba3c6e758db9608b575.tar.gz
rails-8f84d092c486f2862c1a1ba3c6e758db9608b575.tar.bz2
rails-8f84d092c486f2862c1a1ba3c6e758db9608b575.zip
Merge pull request #25866 from prathamesh-sonpatki/rm-deprecated-mattr-accessor
Followup of changes done to `error_on_ignored_order`
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/core.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index 2c94463acd..c46cafdd09 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -78,7 +78,14 @@ module ActiveRecord
mattr_accessor :error_on_ignored_order, instance_writer: false
self.error_on_ignored_order = false
- mattr_accessor :error_on_ignored_order_or_limit, instance_writer: false
+ def self.error_on_ignored_order_or_limit
+ ActiveSupport::Deprecation.warn(<<-MSG.squish)
+ The flag error_on_ignored_order_or_limit is deprecated. Limits are
+ now supported. Please use error_on_ignored_order instead.
+ MSG
+ self.error_on_ignored_order
+ 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