module ActiveAdmin::ResourceController::DataAccess

def apply_scoping(chain)

def apply_scoping(chain)
  @collection_before_scope = chain
  if current_scope
    scope_chain(current_scope, chain)
  else
    chain
  end
end