-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tips on using with Devise #41
Comments
If you come up with a clever solution, I'd love to hear it! |
This is the solution I came up with (updated to use part of @aaronchi's code below):
|
Monkey Patch: module Devise
module Mailers
module Helpers
# Bootstrap Email Override
def devise_mail(record, action, opts = {}, &block)
initialize_from_record(record)
make_bootstrap_mail headers_for(action, opts), &block
end
end
end
end |
I'd like to bring the discussion back to life in regards to using Devise with Bootstrap Email in Rails 6. I have a pretty similar setup as everyone here and followed @aaronchi's monkey patch. The one possible difference I made is that I added
|
I would like to style my Devise email templates using the same layout that is used by the other emails in my application, but in order to do this, I will need to call the
make_bootstrap_mail
method from within theDevise::Mailer
class somehow. I think there are a few different ways to achieve this, but I'm curious if anyone else has dealt with this before and how did you do it?The text was updated successfully, but these errors were encountered: