Sha256: c044c1b7455acc5e6bd4bcbb3362a7eed1879ed4213183e151ee47aa4aad941d
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
require Sufia::Engine.root.join('lib/sufia/jobs/characterize_job') class CharacterizeJob module WithAntiVirusHandler def run super rescue AntiVirusScanner::VirusDetected => e GenericFile.find(generic_file_id).destroy raise e end end include(WithAntiVirusHandler) unless included_modules.include?(WithAntiVirusHandler) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curate-0.3.2 | app/workers/characterize_job.rb |
curate-0.3.1 | app/workers/characterize_job.rb |