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

Update initializer.rb to include the remove_role_if_empty option and … #394

Merged
merged 1 commit into from
Sep 30, 2016

Conversation

ethier
Copy link
Contributor

@ethier ethier commented Apr 10, 2016

…description

The default action is to remove roles if the last resource is removed. Important to disable this if the roles are associated with permissions (Pundit etc.) and cascades are enabled.

I'd suggest changing the default action, but in absence of that, a small change to the initializer to include the option and description to change it.

…description

The default action is to remove roles if the last resource is removed. Important to disable this if the roles are associated with permissions (Pundit etc.) and cascades are enabled.

I'd suggest changing the default action, but in absence of that, a small change to the initializer to include the option and description to change it.
@coveralls
Copy link

Coverage Status

Coverage increased (+10.3%) to 93.552% when pulling 4386aa1 on ethier:master into 2a61bcb on RolifyCommunity:master.

@lorefnon
Copy link
Contributor

Yes, I think documenting this option is certainly a good idea. Thanks for the PR.

Important to disable this if the roles are associated with permissions (Pundit etc.) and cascades are enabled.

Can you elaborate a bit more on the use case here. It may be worthwhile to add this to the wiki.

@wldcordeiro wldcordeiro merged commit 690757e into RolifyCommunity:master Sep 30, 2016
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

Successfully merging this pull request may close these issues.

None yet

4 participants