Revision 8a65dff7
Added by Ohad Levy almost 13 years ago
- ID 8a65dff786359b268b4e5033790092e8c50f40cd
app/models/puppetclass.rb | ||
---|---|---|
include Authorization
|
||
has_and_belongs_to_many :environments
|
||
has_and_belongs_to_many :operatingsystems
|
||
has_and_belongs_to_many :hosts
|
||
has_and_belongs_to_many :hostgroups
|
||
has_many :host_classes, :dependent => :destroy
|
||
has_many :hosts, :through => :host_classes
|
||
|
||
has_many :lookup_keys, :inverse_of => :puppetclass
|
||
accepts_nested_attributes_for :lookup_keys, :reject_if => lambda { |a| a[:key].blank? }, :allow_destroy => true
|
||
|
Also available in: Unified diff
fixes #777 - this enable auditing of when a host is changing its puppet class assignmetns
one limitation of this patch is that at the moment, each class change
gets its own audit record.