2014-04-01 10:48:18 +00:00

7 lines
122 B
Ruby

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