module ActiveAdmin::ResourceController::Collection::BaseCollection

def active_admin_collection

def active_admin_collection
  scoped_collection
end

def collection

def collection
  get_collection_ivar || set_collection_ivar(active_admin_collection)
end

def scoped_collection

method.
scope_to method from the Scoping module instead of overriding this
Note, unless you are doing something special, you should use the

the searching and filtering can be applied on top
This method should return an ActiveRecord::Relation object so that

of our searches and index.
Override this method in your controllers to modify the start point
def scoped_collection
  end_of_association_chain
end