Skip to content

Commit 20f76e5

Browse files
committed
Ruby: actually call the isPublic() predicate I added
1 parent 2b5e2ed commit 20f76e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module ActionCable {
4848
// database
4949
not m = getActionCableChannelBase().asModule().getAnInstanceMethod() and
5050
// and as long as it's public
51-
m.asCallableAstNode().isPublic() and
51+
m.isPublic() and
5252
// and is not called `subscribed` or `unsubscribed`.
5353
not m.getMethodName() = ["subscribed", "unsubscribed"]
5454
|

0 commit comments

Comments
 (0)