Reputation: 1102
Is there a way not to define equal ? but includes?
can :read, Project, :category => { :visible => true }
can :read, Project, :category => { :map(&:user_id) => { include(user.id) } }
Using CanCan and ruby on rails...
Thanks
Upvotes: 0
Views: 75