plataformatec/devise — pull request #2187 by sopwithpup (2012-12-21 09:43:29+00:00)
Title: Add method to confirmable to improve flexibility on changing emails

I use an overridden confirmations_controller to get users to pay via cc or paypal when they sign up. If they then try to change their email or password they are asked to pay again.

I added confirm_changed_by_token to confirmable.rb to allow devise:confirmable to respond differently to already confirmed accounts.

Could be useful more generally if for example users have to fill in some info when confirming, you don't want that to happen if they just change their email.