Merge branch 'pass_action_to_accessible_by' of https://github.com/amw/cancan into amw-pass_action_to_accessible_by

This commit is contained in:
Ryan Bates 2011-02-14 10:28:59 -08:00
commit 471d54ce01

View File

@ -77,7 +77,7 @@ module CanCan
end
def load_collection
resource_base.accessible_by(current_ability)
resource_base.accessible_by(current_ability, authorization_action)
end
def build_resource