clarion/app/views/api/tracks/index.jbuilder
2015-10-17 18:26:21 +03:00

15 lines
346 B
Ruby

@tracks.each do |track|
json.set! track.id do
json.name do
track.translations.each do |translation|
json.set! translation.locale, translation.name
end
end
json.description do
track.translations.each do |translation|
json.set! translation.locale, translation.description
end
end
end
end