clarion/app/views/api/tracks/index.jbuilder

15 lines
346 B
Plaintext
Raw Normal View History

2015-10-17 17:28:57 +03:00
@tracks.each do |track|
json.set! track.id do
json.name do
track.translations.each do |translation|
json.set! translation.locale, translation.name
end
2015-10-08 02:34:19 +03:00
end
2015-10-17 17:28:57 +03:00
json.description do
track.translations.each do |translation|
json.set! translation.locale, translation.description
end
2015-10-08 02:34:19 +03:00
end
end
end