Set Multi Tenant in Active Admin Controllers (required for Searchkick index)
问题 I am using Active Admin in my multi tenant app. I also use Searchkick which has a custom tenant specific index in each model: class Budget < ApplicationRecord multi_tenant :company searchkick inheritance: true,index_name: -> { [MultiTenant.current_tenant.tenant_name, model_name.plural, Rails.env].join('_') } end The issue is that in AA this logic fails because on the tenant is set. I want to be able to set this in AA when updating a record. For example I would update http://localhost:4000