Permalink
Browse files

Removed deprecated method default_scopes?

  • Loading branch information...
1 parent 18099b0 commit 432cbc8419b36a22a25978e2de4a2be03b3683b6 Neeraj Singh committed Jul 1, 2013
Showing with 4 additions and 8 deletions.
  1. +4 −0 activerecord/CHANGELOG.md
  2. +0 −8 activerecord/lib/active_record/scoping/default.rb
@@ -1,3 +1,7 @@
+* Removed deprecated method `default_scopes?`
+
+ *Neeraj Singh*
+
* Remove implicit join references that were deprecated in 4.0.
Example:
@@ -8,14 +8,6 @@ module Default
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

0 comments on commit 432cbc8

Please sign in to comment.