ErwinM / acts_as_tenant

Easy multi-tenancy for Rails in a shared database setup.
MIT License
1.53k stars 262 forks source link

Fix bleeding test_tenant into current_tenant #337

Open artemave opened 3 months ago

artemave commented 3 months ago

with_tenant and without_tenant blocks bleed test_tenant into current_tenant. This pr fixes it.

I already submitted a pr for this two years ago #278 but it didn't raise much interest and got stale.