activerecord-multi-tenant icon indicating copy to clipboard operation
activerecord-multi-tenant copied to clipboard

Compatibility with ActiveAdmin?

Open aximuseng opened this issue 5 years ago • 0 comments

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.

aximuseng avatar Dec 03 '19 21:12 aximuseng