lib/rails/graphql/field/resolved_field.rb
def validate!(*)
        super if defined? super

        # Store this result for performance purposes
        @dynamic_resolver = dynamic_resolver?
        return unless defined? @events

        invalid = @events.each_value.reject do |callback|
          callback.block.is_a?(Proc) || callable?(callback.block)
        end

        raise ArgumentError, <<~MSG.squish if invalid.present?
          The "#{owner.name}" class does not define the following methods needed
          for performing hooks: #{invalid.map(&:block).to_sentence}.
        MSG
      end
# Checks if all the named callbacks can actually be called
Checks if all the named callbacks can actually be called
Checks if all the named callbacks can actually be called
def validate!(*)
        super if defined? super
        @dynamic_resolver = dynamic_resolver?
        return unless defined? @events
        invalid = @events.each_value.reject do |callback|
          callback.block.is_a?(Proc) || callable?(callback.block)
        end
        raise ArgumentError, <<~MSG.squish if invalid.present?
          The "#{owner.name}" class does not define the following methods needed
          for performing hooks: #{invalid.map(&:block).to_sentence}.
        MSG
      end
def validate! ( * ) super if defined? super @dynamic_resolver = dynamic_resolver? return unless defined? @events invalid = @events . each_value . reject do | callback | callback . block . is_a? ( Proc ) || callable? ( callback . block ) end raise ArgumentError , <<~MSG . squish if invalid . present? 
          The " #{ owner . name } " class does not define the following methods needed
          for performing hooks:  #{ invalid . map ( & :block ) . to_sentence } .
         MSG end
Checks if all the named callbacks can actually be called
Checks if all the named callbacks can actually be called
# Store this result for performance purposes