Permalink
Browse files

Merge pull request #11212 from neerajdotname/default_scopes_q_deprecated

Removed deprecated default_scopes?
  • Loading branch information...
2 parents ab6601c + 432cbc8 commit 00550b57b6f1bb14374d91f2d6f4828bd929a1b5 @rafaelfranca rafaelfranca 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
View
4 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:
View
8 activerecord/lib/active_record/scoping/default.rb
@@ -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 00550b5

Please sign in to comment.