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

Use object id for distribution reminder mailer #1653

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

dejanbj
Copy link
Contributor

@dejanbj dejanbj commented Apr 30, 2020

Resolves #1647

Description

Distribution reminder mailer logic modified to be in compliance with Sidekiq best practices - create mailers with object id instead of the whole object. Also, did a small refactoring on the distribution_mailer_spec so that both methods from the mailer are tested.

@auto-comment
Copy link

auto-comment bot commented Apr 30, 2020


Thank you for your pull request!
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
Best,
@rubyforgood/diaper-team

@seanmarcia
Copy link
Member

Awesome, thank you so much for this!!!

@seanmarcia seanmarcia merged commit ba377e3 into rubyforgood:master Apr 30, 2020
@dejanbj dejanbj deleted the update-mailers-to-use-ids branch April 30, 2020 22:31
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.

Update Mailers to Use Obect IDs
2 participants