mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Preventing rabl from dying if no current hub
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
object current_distributor
|
||||
attributes :name, :id
|
||||
|
||||
child suppliers: :producers do
|
||||
extends "json/producer"
|
||||
if current_distributor
|
||||
child suppliers: :producers do
|
||||
extends "json/producer"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user