mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Fix access_locked? always return boolean
This commit is contained in:
parent
176158a309
commit
e632240aee
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ module Devise
|
||||||
|
|
||||||
# Verifies whether a user is locked or not.
|
# Verifies whether a user is locked or not.
|
||||||
def access_locked?
|
def access_locked?
|
||||||
locked_at && !lock_expired?
|
!!locked_at && !lock_expired?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Send unlock instructions by email
|
# Send unlock instructions by email
|
||||||
|
|
Loading…
Reference in a new issue