Files
openfoodnetwork/app/controllers/spree/distributors_controller.rb
2012-06-21 07:31:33 +10:00

13 lines
344 B
Ruby

module Spree
class DistributorsController < BaseController
def show
options = {:distributor_id => params[:id]}
options.merge(params.reject { |k,v| k == :id })
@searcher = Config.searcher_class.new(options)
@products = @searcher.retrieve_products
render :template => 'spree/products/index'
end
end
end