Registry / auth / roles-generic

roles-generic

JSON →
library0.5.0rbrubygemsunverified

Generic role strategies sharing the same API, easy to insert in any model.

gem install roles_generic
INSTALL
IMPORT
SIG · ROLES-GENERIC
R
roles-generic
authrubyv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RolesGeneric
✓ require 'roles_generic'

Add role-based access control to a model

require 'roles_generic' class User include RolesGeneric::Base role_strategy :admin end user = User.new user.add_role :admin puts user.has_role?(:admin)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
16
Resources
roles-generic — gem install roles-generic · libregistry