Skip to content

Commit 578a967

Browse files
authored
Merge pull request #9641 from boveus/patch-1
Make ActiveRecordInstanceMethodCall Public
2 parents d00fec3 + 5888325 commit 578a967

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ruby/ql/lib/codeql/ruby/frameworks/ActiveRecord.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,13 @@ class ActiveRecordInstance extends DataFlow::Node {
330330
ActiveRecordModelClass getClass() { result = instantiation.getClass() }
331331
}
332332

333-
// A call whose receiver may be an active record model object
334-
private class ActiveRecordInstanceMethodCall extends DataFlow::CallNode {
333+
/** A call whose receiver may be an active record model object */
334+
class ActiveRecordInstanceMethodCall extends DataFlow::CallNode {
335335
private ActiveRecordInstance instance;
336336

337337
ActiveRecordInstanceMethodCall() { this.getReceiver() = instance }
338338

339+
/** Gets the `ActiveRecordInstance` that is the receiver of this call. */
339340
ActiveRecordInstance getInstance() { result = instance }
340341
}
341342

0 commit comments

Comments
 (0)