Sha256: c54aae2b2323fc409cfccdb4c64c3650ab3384b2bd2d81aee774704f3097babe
Contents?: true
Size: 469 Bytes
Versions: 40
Compression:
Stored size: 469 Bytes
Contents
# Methods added to this helper will be available to all templates in the frontend. module Spree module StoreHelper # helper to determine if its appropriate to show the store menu def store_menu? %w{thank_you}.exclude? params[:action] end 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 end end
Version data entries
40 entries across 40 versions & 1 rubygems