premailer-rails icon indicating copy to clipboard operation
premailer-rails copied to clipboard

Support ActionMailer lazy-loading

Open c960657 opened this issue 4 years ago • 2 comments

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).

c960657 avatar Mar 18 '21 09:03 c960657

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.

louim avatar Jun 01 '21 15:06 louim

I need this PR. I'm trying to add a custom mailer interceptor after premailer-rails but It doesn't work.

zjuanma avatar Aug 19 '21 14:08 zjuanma

Thanks!

fphilipe avatar Oct 15 '22 13:10 fphilipe