Skip to content

Commit

Permalink
Add support for ActionMailer::MailDeliveryJob
Browse files Browse the repository at this point in the history
As pointed out by @grzuy in rollbar#487 (comment)
  • Loading branch information
jaredbeck authored Oct 27, 2022
1 parent 9ff048b commit 9395482
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rollbar/plugins/active_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ def self.included(base)
ActionMailer::DeliveryJob.send(:include,
Rollbar::ActiveJob)
end
# Rails >= 6.0
if defined?(ActionMailer::MailDeliveryJob)
ActionMailer::MailDeliveryJob.send(:include, Rollbar::ActiveJob)
end
end
end

0 comments on commit 9395482

Please sign in to comment.