airblade / quo_vadis

Multifactor authentication for Rails (7 and 6).
MIT License
33 stars 4 forks source link

Enable mailer to subclass any mailer #30

Closed airblade closed 2 years ago

airblade commented 2 years ago

Currently the mailer subclasses ActionMailer::Base (source. This means it does not inherit any of an application's mailer settings, and also makes it a little tricky to set a non-default layout.

The mailer should subclass ApplicationMailer by default while allowing an arbitrary superclass to be configured.