Update ActiveRecord.qll

This commit is contained in:
Brandon Stewart
2022-06-24 15:33:02 -04:00
committed by GitHub
parent 2047954013
commit 463c096d4c

View File

@@ -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 }
}