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

nesting groups inside groups #55

Open
eyalrosen opened this issue Apr 1, 2017 · 7 comments
Open

nesting groups inside groups #55

eyalrosen opened this issue Apr 1, 2017 · 7 comments
Labels

Comments

@eyalrosen
Copy link

Hi,
Is it possible to nest groups inside groups?
Thanks

@dwbutler
Copy link
Owner

dwbutler commented Apr 1, 2017

This is not currently possible out of the box. Supporting this would be very complex. What use case do you have in mind?

You can make a group a member of another group. But this does not affect group membership.

@eyalrosen
Copy link
Author

I need to develop an app in hierarchical groups (School > Department > Class)

@dwbutler
Copy link
Owner

dwbutler commented Apr 1, 2017

I would recommend using an excellent gem such as Closure Tree to store the hierarchy. And then add some business logic in your application that adds the user to the parent groups when they are added to a group. (And removes them from the parent groups when they are removed.)

@eyalrosen
Copy link
Author

Thanks!

@dwbutler
Copy link
Owner

@eyalrosen I'm curious to know what your solution was. It's a common question and it would be great to document solutions in the readme.

@eyalrosen
Copy link
Author

still checking it out, I'll keep you updated :)

@monroemann
Copy link

@eyalrosen Did you ever find a solution to your issue? I'm interested in the same functionality.

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

No branches or pull requests

3 participants