We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f69188 commit baf555bCopy full SHA for baf555b
app/jobs/application_job.rb
@@ -6,9 +6,7 @@ class ApplicationJob < ActiveJob::Base
6
end
7
8
around_perform do |job, block|
9
- if job.arguments.last.is_a?(Hash) && job.arguments.last.key?(:request_id)
10
- @request_id = job.arguments.pop[:request_id]
11
- end
+ @request_id = job.arguments.pop[:request_id] if job.arguments.last.is_a?(Hash) && job.arguments.last.key?(:request_id)
12
block.call
13
14
0 commit comments