Include roots for resources in rabl index views
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
collection @playlists
|
||||
collection @playlists, root: :playlists, object_root: false
|
||||
|
||||
attribute :id
|
||||
attribute :name
|
||||
|
@@ -1,4 +1,4 @@
|
||||
collection @tracks
|
||||
collection @tracks, root: :tracks, object_root: false
|
||||
|
||||
attribute :id
|
||||
attribute :name
|
||||
|
Reference in New Issue
Block a user