0
votes

I have followed the instructions of overriding the devise mailer in Rails from here: https://github.com/plataformatec/devise/wiki/How-To:-Use-custom-mailer

My problem is that the params for the overridden function are missing values

app/mailers/my_mailer.rb

def confirmation_instructions(record, token, opts={})
   # record contains the User<ActiveRecord>
   # token = nil
   # opts = nil

end
1

1 Answers

2
votes

You must call super in the method to get devise's default behavior.