Merge pull request #5503 from betagouv/move-virus-scan-to-attachment
config: remove comment about ActiveStorage integration with VirusScanner
This commit is contained in:
commit
abd4e3c6cc
1 changed files with 0 additions and 6 deletions
|
@ -1,11 +1,5 @@
|
||||||
Rails.application.config.active_storage.service_urls_expire_in = 1.hour
|
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
|
ActiveSupport.on_load(:active_storage_blob) do
|
||||||
include BlobSignedIdConcern
|
include BlobSignedIdConcern
|
||||||
include BlobVirusScannerConcern
|
include BlobVirusScannerConcern
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue