Skip to content

Commit 0237b55

Browse files
committed
Adopt newer syntax
1 parent c539267 commit 0237b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/authentication_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class AuthenticationController < ApplicationController
44
def login
55
command = AuthenticateUser.call(params[:email], params[:password])
66

7-
if command.success?
7+
if command.successful?
88
render(json: { auth_token: command.result })
99
else
1010
render(json: { error: command.errors }, status: :unauthorized)

0 commit comments

Comments
 (0)