Sha256: 3009660fa71a81356910f6757b5a93109f8ae0b1c1f1124d7077bee85bdbc946

Contents?: true

Size: 312 Bytes

Versions: 67

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module Spree
  # Methods added to this helper will be available to all templates in the
  # frontend.
  module StoreHelper
    # @return [Boolean] true when it is appropriate to show the store menu
    def store_menu?
      %w{thank_you}.exclude? params[:action]
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
solidus_core-4.4.2 app/helpers/spree/store_helper.rb
solidus_core-4.4.1 app/helpers/spree/store_helper.rb
solidus_core-4.4.0 app/helpers/spree/store_helper.rb
solidus_core-4.3.4 app/helpers/spree/store_helper.rb
solidus_core-4.2.4 app/helpers/spree/store_helper.rb
solidus_core-4.1.5 app/helpers/spree/store_helper.rb
solidus_core-4.3.3 app/helpers/spree/store_helper.rb
solidus_core-4.3.2 app/helpers/spree/store_helper.rb
solidus_core-4.1.4 app/helpers/spree/store_helper.rb
solidus_core-4.3.1 app/helpers/spree/store_helper.rb
solidus_core-4.3.0 app/helpers/spree/store_helper.rb
solidus_core-4.2.3 app/helpers/spree/store_helper.rb
solidus_core-4.1.3 app/helpers/spree/store_helper.rb
solidus_core-4.0.4 app/helpers/spree/store_helper.rb
solidus_core-3.4.6 app/helpers/spree/store_helper.rb
solidus_core-4.0.3 app/helpers/spree/store_helper.rb
solidus_core-4.1.2 app/helpers/spree/store_helper.rb
solidus_core-4.2.2 app/helpers/spree/store_helper.rb
solidus_core-3.4.5 app/helpers/spree/store_helper.rb
solidus_core-4.2.1 app/helpers/spree/store_helper.rb