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:
commit
471d54ce01
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user