Fix access_locked? always return boolean
This commit is contained in:
parent
176158a309
commit
e632240aee
|
@ -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 New Issue