Merge pull request #5503 from betagouv/move-virus-scan-to-attachment

config: remove comment about ActiveStorage integration with VirusScanner
This commit is contained in:
Paul Chavard 2020-08-27 09:29:24 +01:00 committed by GitHub
commit abd4e3c6cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,5 @@
Rails.application.config.active_storage.service_urls_expire_in = 1.hour
# In Rails 5.2, we have to hook at `on_load` on the blob themeselves, which is
# not ideal.
#
# Rails 6 adds support for `.on_load(:active_storage_attachment)`, which is
# cleaner (as it allows to enqueue the virus scan on attachment creation, rather
# than on blob creation).
ActiveSupport.on_load(:active_storage_blob) do
include BlobSignedIdConcern
include BlobVirusScannerConcern