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: registry.rb
    path of file: ./repos/gitlabhq/lib/gitlab/graphql/loaders/lazy_relation_loader
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Graphql
    module Loaders
      class LazyRelationLoader
        class Registry
          PrematureQueryExecutionTriggered = Class.new(RuntimeError)
          # Following methods are Active Re
    
          def method_missing(method_name, ...)
            raise PrematureQueryExecutionTriggered if PROHIBITED_METHODS.include?(method_name)

            result = relation.public_send(method_name, ...) # rubocop:disable GitlabSecurity/PublicSend

            if result.is_a?(ActiveRecord::Relation) # Spawn methods generate a new relation (e.g. where, limit)
              @relation = result

              return self
            end