lib/rails/graphql/type_map.rb
# Clear the pending list of classes to be registered
Clear the pending list of classes to be registered
Clear the pending list of classes to be registered
def register_pending!
          return if @pending.blank?
          skip = skip_register.flatten
          keep = []
          validate = []
          while (klass, source = @pending.shift)
            next if klass.registered?
            if skip.include?(klass)
              keep << [klass, source]
            else
              validate << klass.register!
            end
          end
          validate.compact.each(&:call)
        rescue DefinitionError => e
          raise e.class, e.message + "\n  Defined at: #{source}"
        ensure
          @pending += keep unless keep.nil?
        end
def register_pending! return if @pending . blank? skip = skip_register . flatten keep = [ ] validate = [ ] while ( klass , source = @pending . shift ) next if klass . registered? if skip . include? ( klass ) keep << [ klass , source ] else validate << klass . register! end end validate . compact . each ( & :call ) rescue DefinitionError => e raise e . class , e . message + "\n  Defined at: #{source}" ensure @pending += keep unless keep . nil? end
Clear the pending list of classes to be registered
Clear the pending list of classes to be registered