diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-12-21 06:16:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 06:16:17 +0100 |
commit | 240c1227671f5b6e269f82754cd5bacada07a005 (patch) | |
tree | e0fd60df16556410c66c2eeb24a524f6af428fff /config/initializers | |
parent | 6a2d030c2f5aec5cbfcfd88ab4ec4c12864e35ba (diff) |
Skip mailer job retries when a record no longer exists (#9590)
Fix #8666
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/delivery_job.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/delivery_job.rb b/config/initializers/delivery_job.rb new file mode 100644 index 000000000..cc2927272 --- /dev/null +++ b/config/initializers/delivery_job.rb @@ -0,0 +1,3 @@ +ActionMailer::DeliveryJob.class_eval do + discard_on ActiveJob::DeserializationError +end |