We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice to have a method to check if the resource has only one specific role. For example:
current_user.only_has_role?(:guest)
In addition to this it may be beneficial to include a only_with_role finder method. For example:
only_with_role
User.only_with_role(:guest)
The text was updated successfully, but these errors were encountered:
only_has_role?
No branches or pull requests
It would be nice to have a method to check if the resource has only one specific role. For example:
In addition to this it may be beneficial to include a
only_with_role
finder method. For example:The text was updated successfully, but these errors were encountered: