mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
13 lines
338 B
Ruby
13 lines
338 B
Ruby
module Spree
|
|
class SuppliersController < BaseController
|
|
def show
|
|
options = {:supplier_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
|