lib/rails/graphql/type.rb
def inherited(subclass)
            if subclass.superclass.eql?(GraphQL::Type)
              subclass.redefine_singleton_method(:base_type) { subclass }

              question_method = "#{subclass.name.demodulize.underscore}?"
              subclass.redefine_singleton_method(question_method) { true }

              subclass.spec_object = true
              subclass.base_object = true
              subclass.abstract = true
            else
              subclass.spec_object = false
              subclass.base_object = false
              subclass.abstract = false
            end

            super if defined? super
          end
# Reset some class attributes, meaning that they are not cascade
Reset some class attributes, meaning that they are not cascade
Reset some class attributes meaning that they are not cascade
def inherited(subclass)
            if subclass.superclass.eql?(GraphQL::Type)
              subclass.redefine_singleton_method(:base_type) { subclass }
              question_method = "#{subclass.name.demodulize.underscore}?"
              subclass.redefine_singleton_method(question_method) { true }
              subclass.spec_object = true
              subclass.base_object = true
              subclass.abstract = true
            else
              subclass.spec_object = false
              subclass.base_object = false
              subclass.abstract = false
            end
            super if defined? super
          end
def inherited ( subclass ) if subclass . superclass . eql? ( GraphQL :: Type ) subclass . redefine_singleton_method ( :base_type ) { subclass } question_method = "#{subclass.name.demodulize.underscore}?" subclass . redefine_singleton_method ( question_method ) { true } subclass . spec_object = true subclass . base_object = true subclass . abstract = true else subclass . spec_object = false subclass . base_object = false subclass . abstract = false end super if defined? super end
Reset some class attributes, meaning that they are not cascade
Reset some class attributes meaning that they are not cascade
subclass