Sha256: 8c30f7122a45676af7b0e1c918561305baf626c54be16742d480dcb815cceb86
Contents?: true
Size: 714 Bytes
Versions: 26
Compression:
Stored size: 714 Bytes
Contents
module Spree module Core module ControllerHelpers module Store extend ActiveSupport::Concern # @!attribute [rw] current_store_class # @!scope class # Extension point for overriding how the current store is chosen. # Defaults to checking headers and server name # @return [#store] class used to help find the current store included do class_attribute :current_store_class self.current_store_class = Spree::Core::CurrentStore def current_store @current_store ||= current_store_class.new(request).store end helper_method :current_store end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems