1
0
Fork 0
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:
t-kot 2013-06-07 12:11:00 +09:00
parent 176158a309
commit e632240aee

View file

@ -55,7 +55,7 @@ module Devise
# Verifies whether a user is locked or not.
def access_locked?
locked_at && !lock_expired?
!!locked_at && !lock_expired?
end
# Send unlock instructions by email