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

module Search
  class ProjectService
    include Search::Filter
    include Gitlab::Utils::StrongMemoize

    ALLOWED_SCOPES = %w[blobs
    
    def scope
      strong_memoize(:scope) do
        search_navigation = Search::Navigation.new(user: current_user, project: project)
        scope = params[:scope]
        next scope if allowed_scopes.include?(scope) && search_navigation.tab_enabled_for_project?(scope.to_sym)

        allowed_scopes.find do |s|
          search_navigation.tab_enabled_for_project?(s.to_sym)
        end
      end
    end