mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
22 lines
359 B
Ruby
22 lines
359 B
Ruby
collection @producers
|
|
extends 'json/enterprises'
|
|
|
|
child supplied_taxons: :taxons do
|
|
extends 'json/taxon'
|
|
end
|
|
|
|
child distributors: :distributors do
|
|
attributes :name, :id
|
|
node :path do |distributor|
|
|
shop_enterprise_path(distributor)
|
|
end
|
|
end
|
|
|
|
node :path do |producer|
|
|
producer_path(producer)
|
|
end
|
|
|
|
node :hash do |producer|
|
|
producer.to_param
|
|
end
|