Skip to content

Commit

Permalink
Avoid nullyfing token when current_user is called before (lynndylanhu…
Browse files Browse the repository at this point in the history
  • Loading branch information
MaicolBen committed Jun 22, 2020
1 parent ae3547c commit 30a1aff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def set_request_start
@used_auth_by_token = true

# initialize instance variables
@token = DeviseTokenAuth::TokenFactory.new
@token ||= DeviseTokenAuth::TokenFactory.new
@resource ||= nil
@is_batch_request ||= nil
end
Expand Down

0 comments on commit 30a1aff

Please sign in to comment.