Closed arifb closed 7 months ago
Hi,
In my initializer I have ActsAsTenant.configure { |config| config.require_tenant = true }
ActsAsTenant.configure { |config| config.require_tenant = true }
I thought I'd be able to do something like ActsAsTenant.with_tenant(tenant) { tenant.some_method } but a ActsAsTenant::Errors::NoTenantSet is thrown.
ActsAsTenant.with_tenant(tenant) { tenant.some_method }
ActsAsTenant::Errors::NoTenantSet
A workaround is to use a without_tenant block but is that the intention? Or is it a bug?
without_tenant
Thanks.
Hi,
In my initializer I have
ActsAsTenant.configure { |config| config.require_tenant = true }
I thought I'd be able to do something like
ActsAsTenant.with_tenant(tenant) { tenant.some_method }
but aActsAsTenant::Errors::NoTenantSet
is thrown.A workaround is to use a
without_tenant
block but is that the intention? Or is it a bug?Thanks.