diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-05-17 15:41:22 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-05-18 12:22:23 +0100 |
commit | 5ddc9049416e8b6093a7bb3ad4341694f7a14d9f (patch) | |
tree | 25c2531a9afc648509a664c61148836eb1546003 /activerecord/lib/active_record | |
parent | c53683595749dcfa223802669237480ac9ebc17f (diff) | |
download | rails-5ddc9049416e8b6093a7bb3ad4341694f7a14d9f.tar.gz rails-5ddc9049416e8b6093a7bb3ad4341694f7a14d9f.tar.bz2 rails-5ddc9049416e8b6093a7bb3ad4341694f7a14d9f.zip |
Remove Model.clear_default_scope
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 18f75af11b..1b76f357e3 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1193,10 +1193,6 @@ module ActiveRecord #:nodoc: self.default_scoping << construct_finder_arel(options, default_scoping.pop) end - def clear_default_scope - self.default_scoping.clear - end - def scoped_methods #:nodoc: key = :"#{self}_scoped_methods" Thread.current[key] = Thread.current[key].presence || self.default_scoping.dup |