ryanb/cancan — Issue #502: can :manage, Comment, :user_id => @usr.id not working, but :user => {:id => @usr.id} works
Author: swobspace
Created: 2011-11-01 17:18:16+00:00
State: open

The following definition didn't give the user @usr any rights:

can :manage, Comment, :user_id => @usr.id

But if I use the following definition

can :manage, Comment, :user => { :id => @usr.id }

all works as expected. As the wiki page "Defining Abilities" mentioned, both should be equivalent.

I'm using Rails 3.1.1, cancan 1.6.7 and ruby 1.8.7.

wob