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
|
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
|