Make Devise::Mailer inherit from ApplicationMailer

This way we remove duplication in the `from:` proc, the helpers, and the
methods we're about to write.
This commit is contained in:
Javi Martín
2022-09-24 15:37:35 +02:00
parent e5933ce6bb
commit a729967e8a
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
class DeviseMailer < Devise::Mailer
helper :application, :settings, :mailer
include Devise::Controllers::UrlHelpers
default template_path: "devise/mailer"