ATTENTION: Gem in development. Not working yet. Look at the build status to see which tests are failing and help us fixing them
This is the adapter for the CanCanCan authorisation library to automatically generate SQL queries from ability rules.
Adds support for Mongoid >= 3.0
Ruby >= 2.0.0
JRuby >= 9.1
In your Gemfile
, insert the following line:
gem 'cancancan'
gem 'cancancan-mongoid'
If you find a bug please add an issue on GitHub or fork the project and send a pull request.
cancancan-mongoid uses appraisals to test the code base against multiple versions of Mongoid
When first developing, you may need to run bundle install
and then appraisal install
, to install the different sets.
You can then run all appraisal files (like CI does), with appraisal rake
or just run a specific set appraisal mongoid_6.1 rake
.