Skip mailer job retries when a record no longer exists (#9590)
Fix #8666
This commit is contained in:
parent
76cad0240a
commit
ab443aaba8
1 changed files with 3 additions and 0 deletions
3
config/initializers/delivery_job.rb
Normal file
3
config/initializers/delivery_job.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
ActionMailer::DeliveryJob.class_eval do
|
||||||
|
discard_on ActiveJob::DeserializationError
|
||||||
|
end
|
Loading…
Reference in a new issue