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

  1. Fork it ( http://github.com/pokonski/access-granted-rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request