Skip to content

Instantly share code, notes, and snippets.

@radar
Created February 6, 2014 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radar/8839312 to your computer and use it in GitHub Desktop.
Save radar/8839312 to your computer and use it in GitHub Desktop.
Spree::TaxonsController.class_eval do
def show
@taxon = Taxon.find_by_permalink!(params[:id])
return unless @taxon
@searcher = build_searcher(params.merge(:taxon => @taxon.id))
@products = @searcher.retrieve_products.descend_by_master_price
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment