Sha256: 86858ad425945dd9d8c1ffac2acce19af518d085cf1b07acaa65a943af8f2693
Contents?: true
Size: 848 Bytes
Versions: 66
Compression:
Stored size: 848 Bytes
Contents
# frozen_string_literal: true # Default class for deciding what the current store is, given an HTTP request # This is an extension point used in Spree::Core::ControllerHelpers::Store # Custom versions of this class must respond to a store instance method module Spree module Core class CurrentStore 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 # Delegate store selection to Spree::Config.current_store_selector_class # Using this class is deprecated. # # @return [Spree::Store] def store @current_store_selector.store end end end end
Version data entries
66 entries across 66 versions & 2 rubygems