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 >= 2.0.0
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.