Module: Spree::TaxonFiltersHelper

Defined in:
app/helpers/spree/taxon_filters_helper.rb

Instance Method Summary collapse

Instance Method Details

#applicable_filters_for(_taxon) ⇒ Object



7
8
9
10
11
# File 'app/helpers/spree/taxon_filters_helper.rb', line 7

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