Skip to content

Commit

Permalink
Please merge again (lynndylanhurley#1350)
Browse files Browse the repository at this point in the history
Fix space in defined?
  • Loading branch information
exocode authored and MaicolBen committed Nov 22, 2019
1 parent c9bf116 commit 612af3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/devise_token_auth/concerns/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def destroy_expired_tokens
end

def should_remove_tokens_after_password_reset?
if Rails::VERSION::MAJOR <= 5 || defined?(Mongoid)
if Rails::VERSION::MAJOR <= 5 ||defined?('Mongoid')
encrypted_password_changed? &&
DeviseTokenAuth.remove_tokens_after_password_reset
else
Expand Down

0 comments on commit 612af3c

Please sign in to comment.