mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Merge pull request #2458 from t-kot/fix_access_locked_return_value
Fix access_locked? always return boolean
This commit is contained in:
commit
5c39a0c6d1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue