Revision a0bbfb28
Added by Ian Ballou over 4 years ago
app/models/taxonomy.rb | ||
---|---|---|
has_many :ptables, -> { where(:type => 'Ptable') }, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Ptable'
|
||
has_many :report_templates, -> { where(:type => 'ReportTemplate') }, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'ReportTemplate'
|
||
has_many :domains, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Domain'
|
||
has_many :http_proxies, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'HttpProxy'
|
||
has_many :realms, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Realm'
|
||
has_many :hostgroups, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Hostgroup'
|
||
has_many :environments, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Environment'
|
Also available in: Unified diff
Fixes #29070 - HTTP Proxy taxonomy searching incorrect