Project

ecm_rbac

0.0
No commit activity in last 3 years
No release in over 3 years
Ecm::Rbac Module.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Ecm::Rbac¶ ↑

This module implements role based access control on top of pundit.

Why?¶ ↑

* Flexible handling of roles, role permissions, permissions and user permissions in the database.
* Automatic mapping of controllers and actions to permissions.

Installation¶ ↑

Add it to your gemfile, bundle and run installer:

echo "\ngem 'ecm_rbac'" >> Gemfile
bundle
rails g ecm:rbac:install

The installer will add an initializer with configuration options in initializers/ecm_rbac.rb

Add the database migrations and migrate:

rake ecm_rbac:install:migrations
rake db:migrate

Configuration¶ ↑

Possible options in the initializer:

* user_class_name: The class of the user model. Default is User.

License¶ ↑

This project rocks and uses MIT-LICENSE.