Registry / auth / rolify

rolify

JSON →
library6.0.1rbrubygemsunverified

Simple Roles library without authorization enforcement, supporting scope on resource objects and ActiveRecord/Mongoid ORMs.

gem install rolify
INSTALL
IMPORT
SIG · ROLIFY
R
rolify
authrubyv6.0.1
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.

Rolify
require 'rolify'

Adds role management to a User model

require 'rolify' class User < ActiveRecord::Base rolify end user = User.create(name: 'admin') user.add_role(:admin)
Debug
Known issues
gotchaDoes not enforce authorization; only manages roles
fix
Use with an authorization library like CanCanCan or Pundit
affects: >= 6.0.0
Upgrade
Version history
6.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
30
OpenAI (training)
1
Resources
rolify — gem install rolify · libregistry