Implement track/index action for API

This commit is contained in:
Thibault Jouan
2012-03-19 19:16:20 +00:00
parent fc1ec120ae
commit 9b9e17e591
5 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
collection @tracks
attribute :id
attribute :name
node(:sound_url, :if => ->(t) { t.sound? }) { |t| api_sound_url t.sound }