Sha256: 49bb65b6ad5d412c7fa352f6eca37e5559ffd9c65897f95b5f5406e8734fa3a2
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
module Brakefast module Detector class ModelWarnings < Base register_detector :model_warnings def set_detector_module if target_module_name && target_method_name mod = Module.new mod.module_eval %Q{ def #{target_method_name} s = "vulnerability found in #{file}:#{line} - #{message}" Thread.current[:brakefast_notifications] << s super end } create_hook(target_module_name, mod) end end def target_module_name vulnerability.model end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brakefast-0.0.2 | lib/brakefast/detector/model_warnings.rb |
brakefast-0.0.1 | lib/brakefast/detector/model_warnings.rb |