Skip to content

amitsuryavanshi/cancancan-neo4j

Repository files navigation

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.

About

Neo4j adapter for cancancan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages