2015-05-03 19:03:16 +00:00

7 lines
157 B
Ruby

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