Sha256: 9682d2a3ecff6668ac6bc61901da34b7a2b6d4ec1388cf7d3e826a16997d2c43
Contents?: true
Size: 326 Bytes
Versions: 50
Compression:
Stored size: 326 Bytes
Contents
# Methods added to this helper will be available to all templates in the frontend. module Spree module StoreHelper 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
50 entries across 50 versions & 2 rubygems