Created
January 14, 2015 17:46
-
-
Save tquiroga/e4358ce914669f582458 to your computer and use it in GitHub Desktop.
Revisions
-
tquiroga revised this gist
Jan 14, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ can :index, Message, :project_id => project.id # AND user.projects.include?(project) #I tried adding after it, doesn't work, it's ignored can :index, Message if user.projects.include?(project) -
tquiroga created this gist
Jan 14, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ can :index, Message, :project_id => project.id # AND user.projects.include?(project) #I tried adding after it, doesn't work, it's ign can :index, Message if user.projects.include?(project)