Update ActiveRecord.qll

This commit is contained in:
Brandon Stewart
2022-06-24 15:35:36 -04:00
committed by GitHub
parent 463c096d4c
commit 29e73e1a04

View File

@@ -330,14 +330,12 @@ class ActiveRecordInstance extends DataFlow::Node {
ActiveRecordModelClass getClass() { result = instantiation.getClass() }
}
/**
* 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 }
}