Skip to content

Commit

Permalink
rubykube#13: fix exception safe vesion of authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
subaru9 committed Jun 15, 2018
1 parent 8b1c21f commit e904bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/api_v1/auth/jwt_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def authenticate!
# Exception-safe version of #authenticate!.
#
# @return [Hash, NilClass]
def authenticate(*args)
authenticate!(*args)
def authenticate
authenticate!
rescue
nil
end
Expand Down

0 comments on commit e904bc2

Please sign in to comment.