From 536c139e84543c859cad01484287c2a903356d22 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 17 Oct 2015 19:47:15 +0300 Subject: [PATCH] Add color to tracks in the API --- app/views/api/tracks/index.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/api/tracks/index.jbuilder b/app/views/api/tracks/index.jbuilder index a3aa9ee..dd2d2ff 100644 --- a/app/views/api/tracks/index.jbuilder +++ b/app/views/api/tracks/index.jbuilder @@ -1,5 +1,6 @@ @tracks.each do |track| json.set! track.id do + json.color track.color json.name do track.translations.each do |translation| json.set! translation.locale, translation.name