Module: Elasticsearch::Persistence::Scoping::ClassMethods
- Defined in:
- lib/elasticsearch/persistence/scoping.rb
Instance Method Summary collapse
Instance Method Details
#current_scope ⇒ Object
12 13 14 |
# File 'lib/elasticsearch/persistence/scoping.rb', line 12 def current_scope ScopeRegistry.value_for(:current_scope, base_class.to_s) end |
#current_scope=(scope) ⇒ Object
:nodoc:
16 17 18 |
# File 'lib/elasticsearch/persistence/scoping.rb', line 16 def current_scope=(scope) #:nodoc: ScopeRegistry.set_value_for(:current_scope, base_class.to_s, scope) end |