Revision d5d2d63f
Added by Ondřej Pražák over 6 years ago
app/models/hostgroup.rb | ||
---|---|---|
alias_attribute :os, :operatingsystem
|
||
has_many :trends, :as => :trendable, :class_name => "ForemanTrend"
|
||
|
||
nested_attribute_for :compute_profile_id, :environment_id, :domain_id, :puppet_proxy_id, :puppet_ca_proxy_id,
|
||
nested_attribute_for :compute_profile_id, :environment_id, :domain_id, :puppet_proxy_id, :puppet_ca_proxy_id, :compute_resource_id,
|
||
:operatingsystem_id, :architecture_id, :medium_id, :ptable_id, :subnet_id, :subnet6_id, :realm_id, :pxe_loader
|
||
|
||
# with proc support, default_scope can no longer be chained
|
Also available in: Unified diff
Fixes #5790 - Add compute resource to hostgroup (#4593)