Refactor playlists views
This commit is contained in:
@@ -12,6 +12,7 @@ module API
|
|||||||
def create
|
def create
|
||||||
@playlist = current_user.playlists.build playlist_params
|
@playlist = current_user.playlists.build playlist_params
|
||||||
@playlist.save
|
@playlist.save
|
||||||
|
render :show
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
object @playlist
|
|
||||||
|
|
||||||
attribute :id
|
|
||||||
attribute :name
|
|
Reference in New Issue
Block a user