activerecord-multi-tenant
activerecord-multi-tenant copied to clipboard
Compatibility with ActiveAdmin?
Anyone managed to get this to work with ActiveAdmin? It seems that with AA you can only access the records that your normal user was last logged in under (i.e. AR is still scoping the DB calls with the last tenant). I know there is the MultiTenant.without do
but it's not clear you can integrate that with AA.
I thought about adding a current_user.admin_user?
to the model tenant definition but not sure if that is right or would work.