I would like to use the devise mailer globally,
since that way I would not have to add another mailer to my app and just use the devise one, to send custom mails outside the devise views/controllers.
Already digged to long for this, anyone know how I can make this possible?
If the point is to only have one mailer, it’s perhaps more straightforward to have your one single mailer just extend the DeviseMailer. E.g. in app/mailer
This setup will, for example, cause all emails (from Devise and otherwise) to all be sent with the
app/layouts/mailer.html.erbtemplate.Note that to do this you do need to move the Devise mailer templates from
app/views/devise/mailerto justapp/views/mailer.