Revision 77f70152
Added by Stephen Benjamin about 10 years ago
app/models/taxonomy.rb | ||
---|---|---|
has_many :media, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Medium'
|
||
has_many :config_templates, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'ConfigTemplate'
|
||
has_many :domains, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Domain'
|
||
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'
|
||
has_many :subnets, :through => :taxable_taxonomies, :source => :taxable, :source_type => 'Subnet'
|
||
... | ... | |
new.compute_resources = compute_resources
|
||
new.media = media
|
||
new.domains = domains
|
||
new.realms = realms
|
||
new.media = media
|
||
new.hostgroups = hostgroups
|
||
new
|
Also available in: Unified diff
fixes #1809 - foreman realm integration