Sha256: 6a76eef943b8564b6ac0ce48197d7c1d123e9b438c8d70aa1cd79d9d7e4dff7c

Contents?: true

Size: 774 Bytes

Versions: 11

Compression:

Stored size: 774 Bytes

Contents

= 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.

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ecm_rbac-2.0.0 README.rdoc
ecm_rbac-1.2.1 README.rdoc
ecm_rbac-1.2.0 README.rdoc
ecm_rbac-1.0.1 README.rdoc
ecm_rbac-1.0.0 README.rdoc
ecm_rbac-0.0.10 README.rdoc
ecm_rbac-0.0.9 README.rdoc
ecm_rbac-0.0.8 README.rdoc
ecm_rbac-0.0.4 README.rdoc
ecm_rbac-0.0.3 README.rdoc
ecm_rbac-0.0.2 README.rdoc