module ActiveAdmin::ResourceController::Collection::Scoping

def scope_current_collection(chain)

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