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 53a3417 commit 96a34c3Copy full SHA for 96a34c3
ruby/ql/lib/codeql/ruby/frameworks/ActiveStorage.qll
@@ -118,10 +118,8 @@ module ActiveStorage {
118
* ```
119
*/
120
private class AttachmentInstance extends DataFlow::CallNode {
121
- Association assoc;
122
-
123
AttachmentInstance() {
124
- exists(string model | model = assoc.getTargetModelName() |
+ exists(Association assoc, string model | model = assoc.getTargetModelName() |
125
this.getReceiver().(ActiveRecordInstance).getClass() = assoc.getSourceClass() and
126
(
127
assoc.isSingular() and this.getMethodName() = model
0 commit comments