Skip to content
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

Lazy-load ActionMailer::Base to defer :action_mailer on_load hook #66

Merged
merged 1 commit into from
Dec 21, 2017
Merged

Lazy-load ActionMailer::Base to defer :action_mailer on_load hook #66

merged 1 commit into from
Dec 21, 2017

Conversation

amatsuda
Copy link
Contributor

This PR does exactly the same thing as ryanb/letter_opener#89

Please don't directly touch ActionMailer::Base class in the initializer but use ActiveSupport on_load hook as documented here: http://api.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html

@pseudomuto
Copy link
Contributor

Wow, it's been a long time! I'm so sorry I didn't see this before. In the future, feel free to ping me directly on issues/PRs so I get notified.

This is absolutely what we should be doing. Thanks for the PR!

@pseudomuto pseudomuto merged commit 4a11fe3 into fgrehm:master Dec 21, 2017
@amatsuda amatsuda deleted the lazy_load_action_mailer branch December 21, 2017 21:10
@amatsuda
Copy link
Contributor Author

Ah, thank you! 😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants