Module: ForemanProbing::HostExtensions
- Defined in:
- app/models/concerns/foreman_probing/host_extensions.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
3 4 5 6 7 8 |
# File 'app/models/concerns/foreman_probing/host_extensions.rb', line 3 def self.prepended(base) base.instance_eval do has_many :scan_hosts, :class_name => '::ForemanProbing::ScanHost', :foreign_key => :host_id has_many :scans, :through => :scan_hosts, :class_name => '::ForemanProbing::Scan' end end |