mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
QL4QL fix
This commit is contained in:
@@ -118,10 +118,8 @@ module ActiveStorage {
|
||||
* ```
|
||||
*/
|
||||
private class AttachmentInstance extends DataFlow::CallNode {
|
||||
Association assoc;
|
||||
|
||||
AttachmentInstance() {
|
||||
exists(string model | model = assoc.getTargetModelName() |
|
||||
exists(Association assoc, string model | model = assoc.getTargetModelName() |
|
||||
this.getReceiver().(ActiveRecordInstance).getClass() = assoc.getSourceClass() and
|
||||
(
|
||||
assoc.isSingular() and this.getMethodName() = model
|
||||
|
||||
Reference in New Issue
Block a user