human-essentials
human-essentials copied to clipboard
4176 customizing reminder message to partners
Resolves #4176
Description
This PR allows a custom message to be added to the distribution reminder message similar to how we currently make customizations on the distribution email content.
Type of change
- New feature (non-breaking change which adds functionality)
How Has This Been Tested?
- Tested manually
- Wrote two tests in the
distribution_mailer_specthat account for a distribution that includes acustom_reminder
Provide instructions so we can reproduce. You can test the email manually by:
- run the app locally
bin/start - go to
http://localhost:3000/diaper_bank/distributions/1/edit - add a custom message and ensure that the distribution date and time is for a date in the future.
- open
rails c - run
DistributionMailer.reminder_email(Distribution.first.id).deliver_nowA mailer preview should open in your browser.
Screenshots
Yes, I'll take another look with the clarification in mind. Thanks!
@nathangthomas are you still interested in finishing this?
Going to close this - no activity and based on the comments it was not taking the right approach.