Fix coding standards in application

This commit is contained in:
Thibault Jouan
2014-04-01 19:02:23 +00:00
parent aca19eb51f
commit e6f6475705
5 changed files with 54 additions and 44 deletions

View File

@@ -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