Fix coding standards: bang operator
This commit is contained in:
parent
0c7bf69ba2
commit
aca19eb51f
@ -4,7 +4,7 @@ class API::SessionsController < API::ApplicationController
|
||||
def create
|
||||
user = User.find_by_email(params[:session][:email])
|
||||
|
||||
if ! user.try(:authenticate?, params[:session][:password])
|
||||
if !user.try(:authenticate?, params[:session][:password])
|
||||
return render json: '', status: :not_found
|
||||
end
|
||||
|
||||
|
@ -7,7 +7,7 @@ class UsersController < ApplicationController
|
||||
|
||||
def create
|
||||
@user = User.new(params[:user])
|
||||
if ! @user.save
|
||||
if !@user.save
|
||||
render :new
|
||||
else
|
||||
self.current_user = @user
|
||||
|
Loading…
x
Reference in New Issue
Block a user