Module: CarrierWave::VirusScanner
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/carrierwave-vs/version.rb,
lib/carrierwave-vs/virus_scanner.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 |
# File 'lib/carrierwave-vs/virus_scanner.rb', line 7 def self.included(base) base.send(:extend, ClassMethods) end |
Instance Method Details
#virus_scan ⇒ Object
17 18 19 20 21 |
# File 'lib/carrierwave-vs/virus_scanner.rb', line 17 def virus_scan response = ::VirusScanner::File.scan_url(url) return true unless response.fetch("status") == "OK" end |