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: repository_settings_controller.rb
    path of file: ./repos/bluedoc/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class RepositorySettingsController < Users::ApplicationController
  # PRO-begin
  depends_on :exports
  # PRO-end

  before_action :authenticate_anonymous!
  before_action :authenticate_user!
  before_action :set_user
  before_action :set_repository

  def show
    authorize! :update, @repos
    
  def docs
    authorize! :update, @repository

    @docs = @repository.docs.order("id desc")

    if request.post?
      transfer_params = params.require(:transfer).permit(:repository_id, doc_id: [])

      @target_repository = Repository.find(transfer_params[:repository_id])
      authorize! :update, @target_repository

      transfer_docs = @docs.where(id: transfer_params[:doc_id])
      Doc.transfer_docs(transfer_docs, @target_repository)

      notice = t(".Successfully transfered docs to",
        num: transfer_docs.length,
        path: "#{@target_repository.user&.name} / #{@target_repository.name}")
      redirect_to docs_user_repository_settings_path(@user, @repository), notice: notice
    end
  end

  # GET /:user/:repo/settings/collaborators
  def collaborators
    authorize! :update, @repository

    if request.post?
      member_params = params.require(:member).permit(:user_slug)

      user = User.find_by_slug!(member_params[:user_slug])

      # Avoid change self
      if user.id == current_user.id
        raise ActiveRecord::RecordNotFound
      end

      @member = @repository.add_member(user, :editor)
    else
      @members = @repository.members.includes(user: {avatar_attachment: :blob}).order("id asc").page(params[:page]).per(20)
    end
  end