Pass action name to accessible_by.
This commit is contained in:
parent
b2028c8aa7
commit
f1ea21b2a6
|
@ -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