aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/scoping/default.rb
diff options
context:
space:
mode:
authorwangjohn <wangjohn@mit.edu>2013-04-08 14:12:52 -0400
committerwangjohn <wangjohn@mit.edu>2013-04-08 15:18:14 -0400
commita332712503ec71cea516a6c25fdac85cf44d0adc (patch)
tree7e614d1ebe3e07ef440ce2f81e6494508eead48d /activerecord/lib/active_record/scoping/default.rb
parente2e9eed3dc6205ec0f9925a8c452067fae9a552d (diff)
downloadrails-a332712503ec71cea516a6c25fdac85cf44d0adc.tar.gz
rails-a332712503ec71cea516a6c25fdac85cf44d0adc.tar.bz2
rails-a332712503ec71cea516a6c25fdac85cf44d0adc.zip
Delegating the value getter and setters in the ScopeRegistry to the
current ScopeRegister object.
Diffstat (limited to 'activerecord/lib/active_record/scoping/default.rb')
-rw-r--r--activerecord/lib/active_record/scoping/default.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/scoping/default.rb b/activerecord/lib/active_record/scoping/default.rb
index daee771669..d37d33d552 100644
--- a/activerecord/lib/active_record/scoping/default.rb
+++ b/activerecord/lib/active_record/scoping/default.rb
@@ -120,11 +120,11 @@ module ActiveRecord
end
def ignore_default_scope? # :nodoc:
- ScopeRegistry.current.value_for(:ignore_default_scope, self)
+ ScopeRegistry.value_for(:ignore_default_scope, self)
end
def ignore_default_scope=(ignore) # :nodoc:
- ScopeRegistry.current.set_value_for(:ignore_default_scope, self, ignore)
+ ScopeRegistry.set_value_for(:ignore_default_scope, self, ignore)
end
# The ignore_default_scope flag is used to prevent an infinite recursion