diff --git a/config/initializers/active_storage.rb b/config/initializers/active_storage.rb index 5cc61f6c1..6be3549bc 100644 --- a/config/initializers/active_storage.rb +++ b/config/initializers/active_storage.rb @@ -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