File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ module ActiveStorage {
87
87
// Class methods
88
88
API:: getTopLevelMember ( "ActiveStorage" )
89
89
.getMember ( "Blob" )
90
- .getASubclass * ( )
90
+ .getASubclass ( )
91
91
.getAMethodCall ( [ "create_after_unfurling!" , "create_and_upload!" ] ) ,
92
92
// Instance methods
93
93
any ( BlobInstance i , DataFlow:: CallNode c |
@@ -153,11 +153,7 @@ module ActiveStorage {
153
153
|
154
154
call = this and
155
155
call .getReceiver ( ) .( ActiveRecordInstance ) .getClass ( ) = assoc .getSourceClass ( ) and
156
- (
157
- assoc .isSingular ( ) and call .getMethodName ( ) = model
158
- or
159
- assoc .isCollection ( ) and call .getMethodName ( ) = model
160
- )
156
+ call .getMethodName ( ) = model
161
157
)
162
158
or
163
159
any ( AttachmentInstance i ) .( DataFlow:: LocalSourceNode ) .flowsTo ( this )
You can’t perform that action at this time.
0 commit comments