0.0
The project is in a healthy, maintained state
Dried authorization solution for Rails. All permissions are stored in a single location.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

>= 2.0.0
~> 2.2.15
~> 13.0.3
~> 3.2.0
~> 0.46

Runtime

 Project Readme

Dry::Ability

Dry::Ability is an authorization library, which is trying to replace cancancan API. The goal is creating less secondary objects by performing authorization. Some codebase, like a controller extension, was copied from cancancan and slightly modified, but public API stays the same. By some reasons (especially, due to integration with InheritedResources) I forked it from version 1.17.0.

One significant difference with CanCanCan is that an ability's rules a defined once on class definition and stored into Dry::Container.

Docs, specs & benchmarks is coming soon…

Installation

Add this to your Gemfile:

gem 'dry-ability'

and run the bundle install command.

Getting Started

Soon…