Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

MetaWhere

ryanb edited this page Mar 11, 2011 · 2 revisions

As of CanCan 1.6, when you have MetaWhere installed, it is possible to use those queries in abilities.

can :read, Project, :priority.lt => 3
can :update, Article, :published_at.not_eq => nil

The & and | joining are not supported yet but hopefully will be soon. If you are interested in helping add this please see the issue tracker.