-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Extract mail configuration into a gem #4377
Conversation
I'm 👍 on this. Less code for us all to maintain. |
🚢 Finished up the gem and added a changelog entry. This should be good to go. |
Love it, thanks for the work @jhawthorn! Couple of potential thoughts:
|
+1 on the harsh deprecation errors. |
Forking to spree (or possibly the to-be-formed spree-community) sounds like a good idea. I can't think of a decent way for it to give deprecation warnings for people who had previously set this in the admin but not an initializer. My hope is that stating the change clearly in the release notes and migration guide will help. This was not done for the S3 settings change in spree 2.1 |
I think going to https://github.com/spree-community would be fine, which has been established. @jhawthorn your now added to it as well if you would like to get it setup there before this is merged. |
Awesome! |
I believe this is good to go. Repo has been moved to spree-contrib/spree_mail_settings |
@jhawthorn Apologies on the delay. I've added this to my master branch now. |
I feel that much like paperclip settings (#4139), mail settings should be configured only in initializers using the normal rails methods. (using
config.action_mailer.smtp_settings
)Here I've extracted the functionality into a gem
https://github.com/jhawthorn/spree_mail_settings
Also will partially fix #3833