Skip to content

ActiveJob with tenants

Justin Coyne edited this page Jan 27, 2017 · 1 revision

How does activejob work with tenants

the config/initializers/apartment_activejob.rb initializer includes ActiveJobTenant onto ActiveJob::Base. This module adds a tenant key on the queue messages and calls Apartment::Tenant.switch around the perform method.