Method: Hyrax::VirusScanner#null_scanner

Defined in:
app/models/hyrax/virus_scanner.rb

#null_scannerObject

Always return zero if there’s nothing available to check for viruses. This means that we assume all files have no viruses because we can’t conclusively say if they have or not.



55
56
57
58
59
# File 'app/models/hyrax/virus_scanner.rb', line 55

def null_scanner
  warning "Unable to check #{file} for viruses because no virus scanner is defined" unless
    Rails.env.test?
  false
end