Skip to content

Commit

Permalink
Add support for ActionMailer::MailDeliveryJob (#1111)
Browse files Browse the repository at this point in the history
As pointed out by @grzuy in #487 (comment)
  • Loading branch information
jaredbeck authored Jan 4, 2023
1 parent 20a13ff commit c88c8cd
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 c88c8cd

Please sign in to comment.