Class: Taxon
- Includes:
- ProductFilters
- Defined in:
- app/models/taxon.rb
Instance Method Summary collapse
Methods included from ProductFilters
all_taxons, brand_filter, price_filter, selective_brand_filter, taxons_below
Instance Method Details
#applicable_filters ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/models/taxon.rb', line 11 def applicable_filters fs = [] fs << ProductFilters.taxons_below(self) ## unless it's a root taxon? left open for demo purposes fs += [ ProductFilters.price_filter, ProductFilters.brand_filter, ProductFilters.selective_brand_filter(self) ] end |