From 432cbc8419b36a22a25978e2de4a2be03b3683b6 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Mon, 1 Jul 2013 16:59:34 +0530 Subject: Removed deprecated method default_scopes? --- activerecord/lib/active_record/scoping/default.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'activerecord/lib/active_record/scoping/default.rb') 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 -- cgit v1.2.3