Merge pull request #4820 from betagouv/4700-virus-scan-safe

#4700: Les exports sont immédiatement marqués comme sûrs par l'antivirus
This commit is contained in:
Keirua 2020-02-24 17:25:51 +01:00 committed by GitHub
commit c5814a3f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,9 @@ class Export < ApplicationRecord
file.attach(
io: io,
filename: filename,
content_type: content_type
content_type: content_type,
# We generate the exports ourselves, so they are safe
metadata: { virus_scan_result: ActiveStorage::VirusScanner::SAFE }
)
end