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.0 app/helpers/spree/store_helper.rb
spree_frontend-3.1.4 app/helpers/spree/store_helper.rb
spree_frontend-3.2.0.rc3 app/helpers/spree/store_helper.rb
spree_frontend-3.2.0.rc2 app/helpers/spree/store_helper.rb
spree_frontend-3.2.0.rc1 app/helpers/spree/store_helper.rb
spree_frontend-3.1.3 app/helpers/spree/store_helper.rb
spree_frontend-3.1.2 app/helpers/spree/store_helper.rb
spree_frontend-3.0.10 app/helpers/spree/store_helper.rb
spree_frontend-3.1.1 app/helpers/spree/store_helper.rb
spree_frontend-3.1.0 app/helpers/spree/store_helper.rb
spree_frontend-3.1.0.rc4 app/helpers/spree/store_helper.rb
spree_frontend-3.0.9 app/helpers/spree/store_helper.rb
spree_frontend-3.1.0.rc3 app/helpers/spree/store_helper.rb
spree_frontend-3.1.0.rc2 app/helpers/spree/store_helper.rb
spree_frontend-3.1.0.rc1 app/helpers/spree/store_helper.rb
spree_frontend-3.0.8 app/helpers/spree/store_helper.rb
spree_frontend-3.0.7 app/helpers/spree/store_helper.rb
spree_frontend-3.0.6.1 app/helpers/spree/store_helper.rb
spree_frontend-3.0.6 app/helpers/spree/store_helper.rb
spree_frontend-3.0.5 app/helpers/spree/store_helper.rb