clarion/app/views/api/halls/index.jbuilder
2015-10-20 10:16:19 +03:00

10 lines
191 B
Ruby

@halls.each do |hall|
json.set! hall.id do
json.name do
hall.translations.each do |translation|
json.set! translation.locale, translation.name
end
end
end
end