Sha256: 5890c47e82ac20c25c5758a921a49880651d8edf5e2daf6b24d0d78ff5ec4592

Contents?: true

Size: 449 Bytes

Versions: 12

Compression:

Stored size: 449 Bytes

Contents

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

        included do
          helper_method :current_currency
          helper_method :current_store
        end

        def current_currency
          Spree::Config[:currency]
        end

        def current_store
          @current_store ||= Spree::Store.current(request.env['SERVER_NAME'])
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_core-3.0.10 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.9 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.8 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.7 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.6.1 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.6 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.5 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.4 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.3 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.2 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.1 lib/spree/core/controller_helpers/store.rb
spree_core-3.0.0 lib/spree/core/controller_helpers/store.rb