Yaro Shm

Results 45 comments of Yaro Shm

@taschetto I prefer the idea of setting `current_tenant `not in session, but in user model with a `tenant_id `field. The user can switch `tenant_id `from one tenant where he is...

@taschetto Imagine slack or trello. A user can be a member in multiple teams there and he can switch from one team/board to another. You can have a method to...

@pldavid2 sorry, I've updated the link to heroku. Now it's correct

@pldavid2 in your case maybe you don't need multitenancy - maybe just role-based access to specific data? gem **rolify** can help with that.

> But additionally, one of those "user types" can belong to more than one tenant, and i would like to avoid having the user type information dupped. @pldavid2 can you...

> Can anybody share any thoughts on how to tackle it or the best approach to follow? @alexventuraio - Not to overcomplicate things, I would stick with One `User` model....

it's getting more and more complicated 😂 > * when a new Admin user(the owner of the subscription) is registering, how to scope its tenants? Do every singo tenant restaurant...

@pldavid2 see my answer to @alexventuraio - it should be also valid for you. @pldavid2 this thread might be interesting for you: https://github.com/ErwinM/acts_as_tenant/pull/191 Basically to make a platform where a...

This looks more like a feature for your own fork, not general-purpose

@hazelsparrow > `ActsAsTenant.with_tenant(Project.first) { Manager.all }` returns all managers scoped to the given Project, whereas `ActsAsTenant.with_tenant(Account.first) { Manager.all }` returns all managers scoped to the given Account. maybe I don't...