Skip to content

Commit

Permalink
Fixing lockable to use the correct method
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Flores committed Mar 13, 2012
1 parent a7658f9 commit 61929d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise/models/lockable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def valid_for_authentication?
end

def unauthenticated_message
if self.respond_to?(:failed_attempts) && attempts_exceeded?
if lock_strategy_enabled?(:failed_attempts) && attempts_exceeded?
:locked
else
super
Expand Down

0 comments on commit 61929d2

Please sign in to comment.