Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 887 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 887 Bytes

CanCanCan-Neo4j

Code Climate Badge | Travis badge

This is the adapter for the CanCanCan authorisation library to automatically generate cypher queries from ability rules. It returns QueryProxy object for resourses.

Adds support for neo4j >= 9.0

Ruby Versions Supported

Ruby >= 2.0.0

Usage

In your Gemfile, insert the following line:

gem 'cancancan'
gem 'cancancan-neo4j'

Defining cancan rules:

can :read, Article, author: { name: 'Chunky' }

here name is a property on Author and Article has 'has_one' relation with Author.