plataformatec/devise — pull request #2228 by bterkuile (2013-01-20 15:44:26+00:00)
Title: Prevent infinite loop for ORM's that do not clear record.changes before :after callbacks

ActiveRecord clears the record's changes before firing the after_update callbacks. If this is not the case it will result in an infinite loop updating the token in send_confirmation_instructions for reconfirming email. This pull request simply prevents this from happening. All tests still passing.