Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

destiny-role

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

destiny-role

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Destiny

Simple role managment system

Concepts

Developer should be able to check permission of a user to perform an action. Grant is an opportunity to make a particular action with some class of objects. Role is an aggregation of grants. Roles persisted in the database. Any number of roles may be assigned to user.

Installation

Gem

In the command line

gem install destiny-role

or in your Gemfile

gem 'destiny-role'

Assumptions

  1. Your app has a user model called 'User'
  2. App's controller should have (integration purpose only)
  • 'current_user' method returning instance of a user model
  • 'access_denied' method which contains response logic in this case

FAQs

Package last updated on 18 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc