Module: Cell::ActiveJob
- Defined in:
- lib/cell/active_job.rb
Constant Summary collapse
- KEY =
:'Cell.tenant'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(cls) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/cell/active_job.rb', line 20 def self.prepended(cls) cls.send(:attr_accessor, :cell_tenant) cls.around_perform do |job, block| ::Cell::Model.use(job.cell_tenant, &block) end end |