Include roots for resources in rabl index views

This commit is contained in:
Thibault Jouan
2015-05-03 18:59:57 +00:00
parent 4e0c422a6f
commit bdfd0edff0
5 changed files with 37 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
collection @playlists
collection @playlists, root: :playlists, object_root: false
attribute :id
attribute :name

View File

@@ -1,4 +1,4 @@
collection @tracks
collection @tracks, root: :tracks, object_root: false
attribute :id
attribute :name