Sha256: b4f4b5c523f92c6845f1b4f24cd398636246a54a0c460a2ddb9bfd35a062c3e3

Contents?: true

Size: 343 Bytes

Versions: 17

Compression:

Stored size: 343 Bytes

Contents

module Spree
  module Core
    module ControllerHelpers
      module Store
        extend ActiveSupport::Concern

        included do
          helper_method :current_store
        end

        def current_store
          @current_store ||= Spree::Config.current_store_selector_class.new(request).store
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
solidus_core-2.5.2 lib/spree/core/controller_helpers/store.rb
solidus_core-2.5.1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.5.0 lib/spree/core/controller_helpers/store.rb
solidus_core-2.5.0.rc1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.5.0.beta2 lib/spree/core/controller_helpers/store.rb
solidus_core-2.5.0.beta1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.4.2 lib/spree/core/controller_helpers/store.rb
solidus_core-2.3.1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.4.1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.4.0 lib/spree/core/controller_helpers/store.rb
solidus_core-2.4.0.rc1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.4.0.beta1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.3.0 lib/spree/core/controller_helpers/store.rb
solidus_core-2.3.0.rc3 lib/spree/core/controller_helpers/store.rb
solidus_core-2.3.0.rc2 lib/spree/core/controller_helpers/store.rb
solidus_core-2.3.0.rc1 lib/spree/core/controller_helpers/store.rb
solidus_core-2.3.0.beta1 lib/spree/core/controller_helpers/store.rb