Add color to tracks in the API

This commit is contained in:
Petko Bordjukov 2015-10-17 19:47:15 +03:00
parent 92cef2b07e
commit 536c139e84
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
@tracks.each do |track| @tracks.each do |track|
json.set! track.id do json.set! track.id do
json.color track.color
json.name do json.name do
track.translations.each do |translation| track.translations.each do |translation|
json.set! translation.locale, translation.name json.set! translation.locale, translation.name