Pass action name to accessible_by.

This commit is contained in:
Adam Wróbel 2011-02-03 17:00:46 +01:00
parent b2028c8aa7
commit f1ea21b2a6

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