Export multilingual hall names
This commit is contained in:
parent
4b82b4c4ac
commit
00688ef5f2
|
@ -1,5 +1,9 @@
|
||||||
@halls.each do |hall|
|
@halls.each do |hall|
|
||||||
json.set! hall.id do
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue