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