lib/rails/graphql/source/active_record/builders.rb
# Check if the given model is consider an interface due to single table
# inheritance and the given model is the base class
Check if the given model is consider an interface due to single table
inheritance and the given model is the base class
Check if the given model is consider an interface due to single table inheritance and the given model is the base class
def sti_interface?
          @sti_interface ||= begin
            model.has_attribute?(model.inheritance_column) && model.base_class == model
          end
        end
def sti_interface? @sti_interface ||= begin model . has_attribute? ( model . inheritance_column ) && model . base_class == model end end
Check if the given model is consider an interface due to single table
inheritance and the given model is the base class
Check if the given model is consider an interface due to single table inheritance and the given model is the base class