Permalink
Browse files

Pass action name to accessible_by.

  • Loading branch information...
Adam Wróbel
Adam Wróbel committed Feb 3, 2011
1 parent b2028c8 commit f1ea21b2a64febe9c3878ecbc767f99cd1971c5c
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 f1ea21b

Please sign in to comment.