ErwinM / acts_as_tenant

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

Set test tenant to nil in ActsAsTenant.without_tenant block #289

Closed hakimaryan closed 2 years ago

hakimaryan commented 2 years ago

When without_tenant was being used, it was staying connected to test_tenant if test_tenant was set. These changes reset the test_tenant in the same way that current_tenant is handled.