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

19 lines
492 B
Plaintext
Raw Normal View History

2015-10-17 17:28:57 +03:00
@tracks.each do |track|
json.set! track.id do
2015-10-17 19:47:15 +03:00
json.color track.color
json.foreground_color track.foreground_color
json.css_class track.css_class
json.css_style track.css_style
2015-10-17 17:28:57 +03:00
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