Fix typo on nonexistent error

This commit is contained in:
Gabe Martin-Dempesy
2012-11-18 15:19:15 -08:00
parent cde2229e59
commit ffab77c35e
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ module Devise
class DatabaseAuthenticatable < Authenticatable
def authenticate!
resource = valid_password? && mapping.to.find_for_database_authentication(authentication_hash)
return fail(:nonexitent) unless resource
return fail(:nonexistent) unless resource
if validate(resource){ resource.valid_password?(password) }
resource.after_database_authentication