mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Update ActiveRecord.qll
This commit is contained in:
@@ -330,13 +330,14 @@ class ActiveRecordInstance extends DataFlow::Node {
|
||||
ActiveRecordModelClass getClass() { result = instantiation.getClass() }
|
||||
}
|
||||
|
||||
// A call whose receiver may be an active record model object
|
||||
/** The `ActiveRecordInstance` receiver of this call. */
|
||||
/**
|
||||
* The `ActiveRecordInstance` receiver of this call.
|
||||
*/
|
||||
class ActiveRecordInstanceMethodCall extends DataFlow::CallNode {
|
||||
private ActiveRecordInstance instance;
|
||||
|
||||
ActiveRecordInstanceMethodCall() { this.getReceiver() = instance }
|
||||
/** Gets the `ActiveRecordInstance` that this is the receiver of this call. */
|
||||
// Gets the `ActiveRecordInstance` that this is the receiver of this call. */
|
||||
ActiveRecordInstance getInstance() { result = instance }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user