Sha256: 102d783fc22c3272c02c3b31005cf206911d5af00f36ece71462fbaf04314cc3

Contents?: true

Size: 353 Bytes

Versions: 99

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

require 'spree/core/product_filters'

module Spree
  module TaxonFiltersHelper
    def applicable_filters_for(_taxon)
      [:brand_filter, :price_filter].map do |filter_name|
        Spree::Core::ProductFilters.send(filter_name) if Spree::Core::ProductFilters.respond_to?(filter_name)
      end.compact
    end
  end
end

Version data entries

99 entries across 99 versions & 3 rubygems

Version Path
solidus_frontend-2.7.1 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-2.6.2 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.14 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.13 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.12 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.11 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.10 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.9 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.8 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.7 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.6 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.5 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.4 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.3 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend_devise_token_auth-2.8.0.alpha.2 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-2.7.0 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-2.6.1 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-2.6.0 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-2.6.0.rc1 app/helpers/spree/taxon_filters_helper.rb