Skip to content

Commit

Permalink
Cleanup and removed debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Willianvdv committed Dec 23, 2013
1 parent 8edb146 commit 5b556c8
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions app/controllers/spree/taxons_controller_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,8 @@ def filter_on
end

def filters
#@taxon.properties.map do |property|
Spree::Property.limit(5).map do |property|
@taxon.properties.map do |property|
::HStoreFilter::Filter.new property, @products
end
end

# def filterables_with_values
# filterables.collect { |property|
# [property, product_values_for_product(property)]
# }
# end

# def product_values_for_product property
# @products.joins(:product_properties)
# .where('spree_product_properties.property_id = ?', property.id)
# .select('spree_product_properties.value')
# .distinct('spree_product_properties.value')
# .limit(nil)
# .reorder(nil)
# .pluck('spree_product_properties.value')
# end
end

0 comments on commit 5b556c8

Please sign in to comment.