diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-01 16:59:34 +0530 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-01 22:59:46 +0530 |
commit | 432cbc8419b36a22a25978e2de4a2be03b3683b6 (patch) | |
tree | b9bcca22c3c54a3d83a966492fca968d6072962f /activerecord | |
parent | 18099b0672ff6df6c649f00d87a92ac28ce8d8e7 (diff) | |
download | rails-432cbc8419b36a22a25978e2de4a2be03b3683b6.tar.gz rails-432cbc8419b36a22a25978e2de4a2be03b3683b6.tar.bz2 rails-432cbc8419b36a22a25978e2de4a2be03b3683b6.zip |
Removed deprecated method default_scopes?
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/scoping/default.rb | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index d6354a75f4..1248fe862b 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Removed deprecated method `default_scopes?` + + *Neeraj Singh* + * Remove implicit join references that were deprecated in 4.0. Example: diff --git a/activerecord/lib/active_record/scoping/default.rb b/activerecord/lib/active_record/scoping/default.rb index d37d33d552..59bdb9166e 100644 --- a/activerecord/lib/active_record/scoping/default.rb +++ b/activerecord/lib/active_record/scoping/default.rb @@ -8,14 +8,6 @@ module ActiveRecord class_attribute :default_scopes, instance_writer: false, instance_predicate: false self.default_scopes = [] - - def self.default_scopes? - ActiveSupport::Deprecation.warn( - "#default_scopes? is deprecated. Do something like #default_scopes.empty? instead." - ) - - !!self.default_scopes - end end module ClassMethods |