Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc1723c commit 6d3f87fCopy full SHA for 6d3f87f
1 file changed
ruby/ql/lib/codeql/ruby/frameworks/ActiveStorage.qll
@@ -87,7 +87,7 @@ module ActiveStorage {
87
// Class methods
88
API::getTopLevelMember("ActiveStorage")
89
.getMember("Blob")
90
- .getASubclass*()
+ .getASubclass()
91
.getAMethodCall(["create_after_unfurling!", "create_and_upload!"]),
92
// Instance methods
93
any(BlobInstance i, DataFlow::CallNode c |
@@ -153,11 +153,7 @@ module ActiveStorage {
153
|
154
call = this and
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
- )
+ call.getMethodName() = model
161
)
162
or
163
any(AttachmentInstance i).(DataFlow::LocalSourceNode).flowsTo(this)
0 commit comments