lib/airbrake/delayed_job.rb in airbrake-6.2.1 vs lib/airbrake/delayed_job.rb in airbrake-6.3.0

- old
+ new

@@ -13,14 +13,15 @@ params = job.as_json # If DelayedJob is used through ActiveJob, it contains extra info. if job.payload_object.respond_to?(:job_data) params[:active_job] = job.payload_object.job_data + job_class = job.payload_object.job_data['job_class'] end ::Airbrake.notify(exception, params) do |notice| notice[:context][:component] = 'delayed_job' - notice[:context][:action] = job.payload_object.class.name + notice[:context][:action] = job_class || job.payload_object.class.name end raise exception end end