Skip to content

Commit

Permalink
Indentation + Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Flores committed Mar 17, 2012
1 parent 9d724cb commit a1376ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/devise/models/lockable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def lock_access!
save(:validate => false)
end

# Unlock a user by cleaning locket_at and failed_attempts.
# Unlock a user by cleaning locked_at and failed_attempts.
def unlock_access!
self.locked_at = nil
self.failed_attempts = 0 if respond_to?(:failed_attempts=)
Expand Down Expand Up @@ -149,9 +149,9 @@ module ClassMethods
# with an email not found error.
# Options must contain the user email
def send_unlock_instructions(attributes={})
lockable = find_or_initialize_with_errors(unlock_keys, attributes, :not_found)
lockable.resend_unlock_token if lockable.persisted?
lockable
lockable = find_or_initialize_with_errors(unlock_keys, attributes, :not_found)
lockable.resend_unlock_token if lockable.persisted?
lockable
end

# Find a user by its unlock token and try to unlock it.
Expand Down

0 comments on commit a1376ac

Please sign in to comment.