Skip to content

Commit

Permalink
Remove deprecated method Spree::Taxon.applicable_filters
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePalombo authored and kennyadsl committed Jan 28, 2021
1 parent 82c3663 commit be96911
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/app/models/spree/taxon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ class Taxon < Spree::Base

self.whitelisted_ransackable_attributes = %w[name]

# @note This method is meant to be overridden on a store by store basis.
# @return [Array] filters that should be used for a taxon
def applicable_filters
Spree::Deprecation.warn "Spree::Taxon#applicable_filters is deprecated, if you are using this functionality please move it into your own application."

fs = []
fs << Spree::Core::ProductFilters.price_filter if Spree::Core::ProductFilters.respond_to?(:price_filter)
fs << Spree::Core::ProductFilters.brand_filter if Spree::Core::ProductFilters.respond_to?(:brand_filter)
fs
end

# @return [String] meta_title if set otherwise a string containing the
# root name and taxon name
def seo_title
Expand Down

0 comments on commit be96911

Please sign in to comment.