CodeQL library for Ruby
codeql/ruby-all 3.0.1-dev (changelog, source)
Search

Member predicate ActiveRecordAssociation::getSourceClass

Gets the class which declares this association. For example, in

class User
  has_many :posts
end

the source class is User.

ActiveRecordModelClass getSourceClass()