AccessGranted::Rails
This is a Rails-flavoured extension of AccessGranted
Installation
Add this line to your application's Gemfile:
gem 'access-granted-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install access-granted-rails
Usage
AccessGranted::Rails offers integration with Rails framework by providing multiple helper methods.
Similarly to CanCan with this gem you can use can?
, cannot?
, authorize!
and current_policy
in your controllers and views.
For more usage see AccessGranted README
Contributing
- Fork it ( http://github.com/pokonski/access-granted-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request