premailer-rails
premailer-rails copied to clipboard
Support ActionMailer lazy-loading
Allow ActionMailer to be lazy-loaded. Currently premailer-rails triggers the loading of ActionMailer during the bootstrapping, but it can be postponed until the mailer is actually used.
ActiveSupport is not a direct dependency of ActionMailer, but it has been required via indirect dependencies since version 3 (the earliest version supported by premailer-rails).
It would be nice to see this merged. Early loading of parts of the framework out of order can cause all sort of problems. Most notably overwriting / ignoring config defined in other initializers.
I need this PR. I'm trying to add a custom mailer interceptor after premailer-rails but It doesn't work.
Thanks!