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
1 changed files with 1 additions and 1 deletions

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