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

Module ActiveRecord

Provides modeling for the ActiveRecord library.

Import path

import codeql.ruby.frameworks.ActiveRecord

Classes

ActiveRecordAssociation

A method call inside an ActiveRecord model class that establishes an association between this model and another model.

ActiveRecordInstance

An instance of an ActiveRecord model object.

ActiveRecordInstanceMethodCall

A call whose receiver may be an active record model object

ActiveRecordModelClass

A ClassDeclaration for a class that inherits from ActiveRecord::Base. For example,

ActiveRecordModelInstantiation

A node that may evaluate to one or more ActiveRecordModelClass instances.

ActiveRecordScopeCallTarget

An additional call step for calls to ActiveRecord scopes. For example, in the following code:

ActiveRecordSqlExecutionRange

A SQL execution arising from a call to the ActiveRecord library.