Module: ActiveRecord::Scoping::ClassMethods
- Defined in:
- lib/active_record/scoping.rb
Instance Method Summary collapse
-
#current_scope ⇒ Object
:nodoc:.
-
#current_scope=(scope) ⇒ Object
:nodoc:.
Instance Method Details
#current_scope ⇒ Object
:nodoc:
13 14 15 |
# File '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 'lib/active_record/scoping.rb', line 17 def current_scope=(scope) #:nodoc: ScopeRegistry.set_value_for(:current_scope, base_class.to_s, scope) end |