Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 471d54ce0113d673f12736ec12e65c84bf8b2dab 2 parents f23bbe0 + f1ea21b
@ryanb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cancan/controller_resource.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.