You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: shared_projects_controller.rb
    path of file: ./repos/gitlabhq/app/controllers/groups
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Groups
  class SharedProjectsController < Groups::ApplicationController
    re
    
    def finder_params
      @finder_params ||= begin
        # Make the `search` param consistent for the frontend,
        # which will be using `filter`.
        params[:search] ||= params[:filter] if params[:filter]
        # Don't show archived projects
        params[:non_archived] = true
        params.permit(:sort, :search, :non_archived)
      end