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

mailer: allow configuration option to change the Mailer's superclass #82

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

paulRbr
Copy link
Contributor

@paulRbr paulRbr commented Apr 20, 2020

This PR adds a parent_mailer configuration option to the Engine
which can receive a Mailer class from which the passwordless mailer
will inherit from.

By default the Mailer inherits from ACtionMailer::Base but allowing
the superclass to be configurable gives users the possibility to
inherit from their own ApplicationMailer class for instance.

This is handy to be able to share users' mailer configuration between
all mailers (including the own provided by Passwordless engine).

About #78. These changes are directly inspired by Devise.

@paulRbr paulRbr force-pushed the add-config-parent-mailer branch from 6c2842e to fb8b996 Compare April 20, 2020 19:34
@mikker
Copy link
Owner

mikker commented Apr 20, 2020

I'm on board with this 👍
Can you add a note to the changelog about the change?

This PR adds a `parent_mailer` configuration option to the Engine
which can receive a Mailer class from which the passwordless mailer
will inherit from.

By default the Mailer inherits from `ACtionMailer::Base` but allowing
the superclass to be configurable gives users the possibility to
inherit from their own `ApplicationMailer` class for instance.

This is handy to be able to share users' mailer configuration between
all mailers (including the own provided by Passwordless engine).

About mikker#78
@paulRbr paulRbr force-pushed the add-config-parent-mailer branch from fb8b996 to 32717ff Compare April 20, 2020 21:57
@paulRbr
Copy link
Contributor Author

paulRbr commented Apr 20, 2020

I'm on board with this +1
Can you add a note to the changelog about the change?

Sure! It's done ✓. Let me know if you need anything else.

@paulRbr
Copy link
Contributor Author

paulRbr commented Apr 27, 2020

@mikker any news to get this PR merged in? Do you need something more from me?

@mikker
Copy link
Owner

mikker commented Apr 30, 2020

Looks good, sorry. Blame hectic quarantine days.

@mikker mikker merged commit d36b969 into mikker:master Apr 30, 2020
@mikker
Copy link
Owner

mikker commented Apr 30, 2020

💙💚💛💜❤️

@paulRbr
Copy link
Contributor Author

paulRbr commented Apr 30, 2020 via email

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

Successfully merging this pull request may close these issues.

2 participants