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-4.0.0 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-4.0.0.dev app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.4.0 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.1.9 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.4.0.dev app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.3.0 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.2.5 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.2.4 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.2.3 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.1.8 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.0.8 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.2.2 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.2.1 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.3.0.alpha app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.2.0 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.2.0.alpha app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.0.7 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-2.11.17 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-3.1.7 app/helpers/spree/taxon_filters_helper.rb
solidus_frontend-2.11.16 app/helpers/spree/taxon_filters_helper.rb