Permalink
Browse files

Merge branch 'pass_action_to_accessible_by' of https://github.com/amw…

…/cancan into amw-pass_action_to_accessible_by
  • Loading branch information...
2 parents f23bbe0 + f1ea21b commit 471d54ce0113d673f12736ec12e65c84bf8b2dab @ryanb committed Feb 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cancan/controller_resource.rb
@@ -77,7 +77,7 @@ def load_collection?
end
def load_collection
- resource_base.accessible_by(current_ability)
+ resource_base.accessible_by(current_ability, authorization_action)
end
def build_resource

0 comments on commit 471d54c

Please sign in to comment.