CodeQL library for Ruby
codeql/ruby-all 0.8.15-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()