Preventing rabl from dying if no current hub

This commit is contained in:
Will Marshall
2014-05-29 16:50:41 +10:00
parent e26a61c31f
commit 3ae2dc34e8

View File

@@ -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