Ruby: Small fixes

This commit is contained in:
Harry Maclean
2022-09-02 14:42:15 +12:00
parent bc1723c0ee
commit 6d3f87f610

View File

@@ -87,7 +87,7 @@ module ActiveStorage {
// Class methods
API::getTopLevelMember("ActiveStorage")
.getMember("Blob")
.getASubclass*()
.getASubclass()
.getAMethodCall(["create_after_unfurling!", "create_and_upload!"]),
// Instance methods
any(BlobInstance i, DataFlow::CallNode c |
@@ -153,11 +153,7 @@ module ActiveStorage {
|
call = this and
call.getReceiver().(ActiveRecordInstance).getClass() = assoc.getSourceClass() and
(
assoc.isSingular() and call.getMethodName() = model
or
assoc.isCollection() and call.getMethodName() = model
)
call.getMethodName() = model
)
or
any(AttachmentInstance i).(DataFlow::LocalSourceNode).flowsTo(this)