Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d00fec3 + 5888325 commit 578a967Copy full SHA for 578a967
1 file changed
ruby/ql/lib/codeql/ruby/frameworks/ActiveRecord.qll
@@ -330,12 +330,13 @@ class ActiveRecordInstance extends DataFlow::Node {
330
ActiveRecordModelClass getClass() { result = instantiation.getClass() }
331
}
332
333
-// A call whose receiver may be an active record model object
334
-private class ActiveRecordInstanceMethodCall extends DataFlow::CallNode {
+/** A call whose receiver may be an active record model object */
+class ActiveRecordInstanceMethodCall extends DataFlow::CallNode {
335
private ActiveRecordInstance instance;
336
337
ActiveRecordInstanceMethodCall() { this.getReceiver() = instance }
338
339
+ /** Gets the `ActiveRecordInstance` that is the receiver of this call. */
340
ActiveRecordInstance getInstance() { result = instance }
341
342
0 commit comments