Sha256: 48bd33aac0ccf1dcc2514b512e1d1eaea368c07330ed59a264cb45fab5aa6019
Contents?: true
Size: 481 Bytes
Versions: 49
Compression:
Stored size: 481 Bytes
Contents
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 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
49 entries across 49 versions & 1 rubygems