Class: MultiTenantSupport::Sidekiq::Client
- Inherits:
-
Object
- Object
- MultiTenantSupport::Sidekiq::Client
- Defined in:
- lib/multi_tenant_support/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#call(worker_class, msg, queue, redis_pool) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/multi_tenant_support/sidekiq.rb', line 5 def call(worker_class, msg, queue, redis_pool) if MultiTenantSupport.current_tenant.present? msg["multi_tenant_support"] ||= { "class" => MultiTenantSupport.current_tenant.class.name, "id" => MultiTenantSupport.current_tenant.id } end yield end |