Class: Spree::Core::CurrentStore
- Inherits:
-
Object
- Object
- Spree::Core::CurrentStore
- Defined in:
- lib/spree/core/current_store.rb
Instance Method Summary collapse
-
#initialize(request) ⇒ CurrentStore
constructor
A new instance of CurrentStore.
-
#store ⇒ Spree::Store
Delegate store selection to Spree::Config.current_store_selector_class Using this class is deprecated.
Constructor Details
#initialize(request) ⇒ CurrentStore
Returns a new instance of CurrentStore.
9 10 11 12 13 |
# File 'lib/spree/core/current_store.rb', line 9 def initialize(request) @request = request @current_store_selector = Spree::Config.current_store_selector_class.new(request) Spree::Deprecation.warn "Using Spree::Core::CurrentStore is deprecated. Use Spree::Config.current_store_selector_class instead", caller end |
Instance Method Details
#store ⇒ Spree::Store
Delegate store selection to Spree::Config.current_store_selector_class Using this class is deprecated.
19 20 21 |
# File 'lib/spree/core/current_store.rb', line 19 def store @current_store_selector.store end |