Class: RolePermission
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RolePermission
- Extended by:
- EnumerateBy::Bootstrapped
- Defined in:
- app/models/role_permission.rb
Overview
Represents an assignment of a permission to a role. The permissions for a role determine what parts of the system that role has access to.
Examples
RolePermission.bootstrap(
{:role => 'admin', :permission => 'application/'},
{:role => 'developer', :permission => 'comments/create'},
{:role => 'developer', :permission => 'admin/stats/'}
)
Notice that permissions are in the form of the path defined by the controller/action.