Module: Spree::StoreHelper
- Defined in:
- app/helpers/spree/store_helper.rb
Instance Method Summary collapse
- #cache_key_for_taxons ⇒ Object
-
#store_menu? ⇒ Boolean
helper to determine if its appropriate to show the store menu.
Instance Method Details
#cache_key_for_taxons ⇒ Object
10 11 12 13 14 |
# File 'app/helpers/spree/store_helper.rb', line 10 def cache_key_for_taxons max_updated_at = @taxons.maximum(:updated_at).to_i parts = [@taxon.try(:id), max_updated_at].compact.join("-") "#{I18n.locale}/taxons/#{parts}" end |
#store_menu? ⇒ Boolean
helper to determine if its appropriate to show the store menu
6 7 8 |
# File 'app/helpers/spree/store_helper.rb', line 6 def %w{thank_you}.exclude? params[:action] end |