Fix coding standards in application files

This commit is contained in:
Thibault Jouan
2015-04-30 08:52:00 +00:00
parent 737ac1f10a
commit 3b733c349e
16 changed files with 34 additions and 26 deletions

View File

@@ -1,11 +1,11 @@
module API
class SessionsController < ApplicationController
skip_before_filter :authenticate!, only: [:create]
skip_before_filter :authenticate!, only: :create
def create
user = User.find_by_email(params[:session][:email])
unless user.try(:authenticate?, params[:session][:password])
unless user.try :authenticate?, params[:session][:password]
return render json: '', status: :not_found
end