Module: WorkerContext
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationWorker
- Defined in:
- app/workers/concerns/worker_context.rb
Instance Method Summary collapse
Instance Method Details
#with_context(context, &block) ⇒ Object
62 63 64 |
# File 'app/workers/concerns/worker_context.rb', line 62 def with_context(context, &block) Gitlab::ApplicationContext.new(**context).use { yield(**context) } end |