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

@@ -18,7 +18,7 @@ describe DeviseMailer do
email = DeviseMailer.confirmation_instructions(create(:user), "ABC")
expect(email).to deliver_from "'New organization' <new@consul.dev>"
expect(email).to deliver_from "New organization <new@consul.dev>"
end
end
end