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

14 lines
330 B
Plaintext
Raw Normal View History

2015-10-08 02:34:19 +03:00
json.array! @tracks do |track|
json.extract! track, :id
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