My Rails 5 app uses ActionCable and I have tenants (using the apartment gem). But ActionCable does not see the apartment middleware, so does not set the tenant.
Does anyone have a way to make this all work together?
My Rails 5 app uses ActionCable and I have tenants (using the apartment gem). But ActionCable does not see the apartment middleware, so does not set the tenant.
Does anyone have a way to make this all work together?
You can use the apartment-sidekiq gem for ease-of-use and to achieve the same result instead of using ActionCable
.