Module: ActiveRecord::Scoping::ClassMethods

Defined in:
activerecord/lib/active_record/scoping.rb

Instance Method Summary collapse

Instance Method Details

#current_scopeObject

:nodoc:



13
14
15
# File 'activerecord/lib/active_record/scoping.rb', line 13

def current_scope #:nodoc:
  ScopeRegistry.value_for(:current_scope, base_class.to_s)
end

#current_scope=(scope) ⇒ Object

:nodoc:



17
18
19
# File 'activerecord/lib/active_record/scoping.rb', line 17

def current_scope=(scope) #:nodoc:
  ScopeRegistry.set_value_for(:current_scope, base_class.to_s, scope)
end