Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow optional: true to then skip the requires_tenant setting #287

Open
gommo opened this issue Jun 21, 2022 · 1 comment
Open

Allow optional: true to then skip the requires_tenant setting #287

gommo opened this issue Jun 21, 2022 · 1 comment

Comments

@gommo
Copy link

gommo commented Jun 21, 2022

We ran into a use case that I'd like to see if others would find useful.
We have patched active_storage to be tenanted however there are other gems like action_mailbox which use storage (and how we route we don't have the tenant initially)
I was thinking it may be useful to honor the optional: true on the acts_as_tenant option to then skip requiring a tenant in that case.

@nightcoding
Copy link

This would be very helpful! I currently have this requirement:

when a new user signs up, a tenant is not yet needed. If sign up was successful, the user has to create the tenant. After some confirmations (manually, because legally required to) the require_tenant is neccessary on every user update.

It would be very helpful if I could disable the validation on new records like with ActsAsTenants.without_tenant do ... end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants