Export multilingual hall names

This commit is contained in:
Petko Bordjukov 2015-10-20 10:14:31 +03:00
parent 4b82b4c4ac
commit 00688ef5f2
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
@halls.each do |hall|
json.set! hall.id do
json.extract! hall, :name
json.name do
hall.translations.each do |translation|
json.set! translation.locale, translation.name
end
end
end
end