Sha256: 8aa072837b428a19f66dbfe8697e096839f82b085ee83ec39b1f28b56d7c1ad4
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 Bytes
Contents
module Decidim module Antivirus class Engine < ::Rails::Engine initializer "decidim_antivirus.setup", before: :load_config_initializers do Ratonvirus.configure do |config| config.scanner = :clamby config.storage = :multi, { storages: [:filepath, :carrierwave] } end end config.to_prepare do if Ratonvirus.scanner.available? # Add virus scanning to the Decidim attachments Decidim::Attachment.send(:include, FileVirusScannable) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
decidim-antivirus-0.16.0 | lib/decidim/antivirus/engine.rb |
decidim-antivirus-0.15.0 | lib/decidim/antivirus/engine.rb |
decidim-antivirus-0.14.4 | lib/decidim/antivirus/engine.rb |