What is hydra-role-management?
An engine gem to provide a RDBMS backed list of roles and their associated user. This replaces the hydra default role mapper.
As of version 1.0, this gem only supports Rails 5.
Product Owner & Maintenance
hydra-role-management is a Core Component of the Samvera community. The documentation for what this means can be found here.
The Samvera community is here to help. Please see our support guide.
gem 'hydra-role-management'to your Gemfile and then
rails generate roles
- Add the following cancan abilities:
# app/models/ability.rb if current_user.admin? can [:create, :show, :add_user, :remove_user, :index, :edit, :update, :destroy], end
- Ensure that the testing app does not exist:
bundle exec rake engine_cart:clean
Set Rails version you want to test against. For example:
Ensure that the correct version of Rails is installed:
Build test app:
bundle exec rake engine_cart:generate
And run tests:
bundle exec rake ci
- Increase the version number in
- Increase the same version number in
CHANGELOG.mdby running this command:
github_changelog_generator --user samvera --project hydra-role-management --token YOUR_GITHUB_TOKEN_HERE
Commit these changes to the master branch
This software has been developed by and is brought to you by the Samvera community. Learn more at the Samvera website.