Skip to content

Ruby ActiveRecord modeling misses multilevel inheriting classes #15697

@MaxSchlueter

Description

@MaxSchlueter

Description of the issue

This piece of code is very common in Ruby on Rails apps:

class ApplicationRecord < ActiveRecord::Base
  primary_abstract_class
end

class Person < ApplicationRecord
  self.site = "https://api.example.com"
end

The following query:

query predicate modelClassNodes(ActiveResource::ModelClassNode c) { any() }

is missing the Person class in the results, that transitively inherits from ActiveRecord::Base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RubyquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions