plataformatec/devise — Issue #1680: Problem with #send_confirmation_instructions
Author: tipugin
Created: 2012-02-24 12:31:49+00:00
State: open

I've overriden method **send_confirmation_instructions** in my **User** model, and it looks like this:

```ruby
def send_confirmation_instructions
generate_confirmation_token! if self.confirmation_token.blank?
UserMailer.confirmation_instructions(self.id).deliver
end
```

And everything was fine until i've not updated Devise up to 2.0.4. Now my app works really strange - when user registers for the first time, Devise invokes original mailer (Devise::Mailer). But when user tries to request confirmation instructions again (from **/confirmations/new**) - Devise uses my custom mailer.

What's wrong with it? Isn't it should be the same mailer?