Fixing lockable to use the correct method

This commit is contained in:
Rodrigo Flores 2012-03-13 15:53:57 -03:00
parent a7658f9d75
commit 61929d2e2f
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ module Devise
end
def unauthenticated_message
if self.respond_to?(:failed_attempts) && attempts_exceeded?
if lock_strategy_enabled?(:failed_attempts) && attempts_exceeded?
:locked
else
super