Module: ActiveJob::ExecutionContext::Integration
- Defined in:
- lib/active_job/execution_context.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(job) ⇒ Object
6 7 8 9 |
# File 'lib/active_job/execution_context.rb', line 6 def self.included(job) job.before_perform :set_context_job job.singleton_class.delegate :executing?, to: ActiveJob::ExecutionContext end |
Instance Method Details
#set_context_job ⇒ Object
11 12 13 |
# File 'lib/active_job/execution_context.rb', line 11 def set_context_job ActiveJob::ExecutionContext.job = self end |