Fix coding standards in application
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
class API::PlaylistsController < API::ApplicationController
|
||||
respond_to :json
|
||||
module API
|
||||
class PlaylistsController < ApplicationController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
@playlists = Playlist.all
|
||||
end
|
||||
def index
|
||||
@playlists = Playlist.all
|
||||
end
|
||||
|
||||
def create
|
||||
@playlist = current_user.playlists.build(params[:playlist].slice(:name))
|
||||
@playlist.save
|
||||
def create
|
||||
@playlist = current_user.playlists.build(params[:playlist].slice(:name))
|
||||
@playlist.save
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user