class ActiveAdmin::AuthorizationAdapter
def scope_collection(collection, action = Auth::READ)
-
(ActiveRecord::Relation)
- A new collection, scoped to the
Parameters:
-
action
(Symbol
) -- The name of the action to perform. Usually this will be -
collection
(ActiveRecord::Relation
) -- The collection the user is
def scope_collection(collection, action = Auth::READ) collection end