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 708e303 commit 5e9210fCopy full SHA for 5e9210f
ruby/ql/lib/codeql/ruby/frameworks/actioncontroller/Filters.qll
@@ -124,14 +124,8 @@ module Filters {
124
*/
125
Callable getFilterCallable(string name) {
126
result.(MethodBase).getName() = name and
127
- // Method in same class
128
- (
129
- result.getEnclosingModule() = this.getExpr().getEnclosingModule()
130
- or
131
- // Method in superclass
132
- result.getEnclosingModule().getModule() =
133
- this.getExpr().getEnclosingModule().getModule().getSuperClass()
134
- )
+ result.getEnclosingModule().getModule() =
+ this.getExpr().getEnclosingModule().getModule().getAnAncestor()
135
}
136
137
0 commit comments