Project

General

Profile

Download (342 Bytes) Statistics
| Branch: | Tag: | Revision:
class HostgroupClass < ActiveRecord::Base
include Authorization
audited :associated_with => :hostgroup
belongs_to :hostgroup
belongs_to :puppetclass

validates_presence_of :hostgroup_id, :puppetclass_id
validates :puppetclass_id, :uniqueness => {:scope => :hostgroup_id}

def name
"#{hostgroup} - #{puppetclass}"
end

end
(34-34/81)