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

ActiveRecord and Mongoid adapters now acceps nil for role_name on remove #427

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Genkilabs
Copy link

This is my solution for #426

Use case: I want to remove all the roles a user has for some resource, without listing them individually.

Basically this allows for syntax current_user.remove_role nil, some_resource.

@coveralls
Copy link

coveralls commented Nov 20, 2017

Coverage Status

Coverage increased (+0.007%) to 93.096% when pulling 1dd66ab on Genkilabs:master into 154748c on RolifyCommunity:master.

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.

2 participants