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 ecd0ce6 commit 0665c39Copy full SHA for 0665c39
ruby/ql/lib/codeql/ruby/frameworks/Grape.qll
@@ -291,12 +291,7 @@ module Grape {
291
private class GrapeHelperMethod extends Method {
292
private GrapeApiClass apiClass;
293
294
- GrapeHelperMethod() {
295
- exists(DataFlow::CallNode helpersCall |
296
- helpersCall = apiClass.getAModuleLevelCall("helpers") and
297
- this.getParent+() = helpersCall.getBlock().asExpr().getExpr()
298
- )
299
- }
+ GrapeHelperMethod() { this = apiClass.getHelperSelf().getSelfVariable().getDeclaringScope() }
300
301
/**
302
* Gets the API class that contains this helper method.
0 commit comments