We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c95ba commit dcc0123Copy full SHA for dcc0123
ruby/ql/lib/codeql/ruby/frameworks/ActiveResource.qll
@@ -184,11 +184,12 @@ module ActiveResource {
184
ModelClassMethodCall classMethodCall;
185
186
Collection() {
187
- exists(ModelClassMethodCall c | c.flowsTo(this) |
188
- c.getMethodName() = "all"
+ classMethodCall.flowsTo(this) and
+ (
189
+ classMethodCall.getMethodName() = "all"
190
or
- c.getMethodName() = "find" and
191
- c.getArgument(0).asExpr().getConstantValue().isStringlikeValue("all")
+ classMethodCall.getMethodName() = "find" and
192
+ classMethodCall.getArgument(0).asExpr().getConstantValue().isStringlikeValue("all")
193
)
194
}
195
0 commit comments