diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index 72b7921270..0ed81d840a 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -1,4 +1,14 @@ class ApplicationJob < ActiveJob::Base + around_perform do |job, block| + claim = job.arguments.find { |arg| arg.is_a?(Claim) } + + if claim + Rollbar.scope!(claim: {reference: claim.reference}) + end + + block.call + end + def priority 10 end