Sha256: 9682d2a3ecff6668ac6bc61901da34b7a2b6d4ec1388cf7d3e826a16997d2c43

Contents?: true

Size: 326 Bytes

Versions: 48

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

48 entries across 48 versions & 1 rubygems

Version Path
spree_frontend-3.2.9 app/helpers/spree/store_helper.rb
spree_frontend-3.1.14 app/helpers/spree/store_helper.rb
spree_frontend-3.2.8 app/helpers/spree/store_helper.rb
spree_frontend-3.1.13 app/helpers/spree/store_helper.rb
spree_frontend-3.2.7 app/helpers/spree/store_helper.rb
spree_frontend-3.1.12 app/helpers/spree/store_helper.rb
spree_frontend-3.2.6 app/helpers/spree/store_helper.rb
spree_frontend-3.1.11 app/helpers/spree/store_helper.rb
spree_frontend-3.1.10 app/helpers/spree/store_helper.rb
spree_frontend-3.2.5 app/helpers/spree/store_helper.rb
spree_frontend-3.1.9 app/helpers/spree/store_helper.rb
spree_frontend-3.2.4 app/helpers/spree/store_helper.rb
spree_frontend-3.1.8 app/helpers/spree/store_helper.rb
spree_frontend-3.1.7 app/helpers/spree/store_helper.rb
spree_frontend-3.2.3 app/helpers/spree/store_helper.rb
spree_frontend-3.2.2 app/helpers/spree/store_helper.rb
spree_frontend-3.1.6 app/helpers/spree/store_helper.rb
spree_frontend-3.3.0.rc1 app/helpers/spree/store_helper.rb
spree_frontend-3.1.5 app/helpers/spree/store_helper.rb
spree_frontend-3.2.1 app/helpers/spree/store_helper.rb