Project

General

Profile

Download (390 Bytes) Statistics
| Branch: | Tag: | Revision:
class OsDefaultTemplate < ActiveRecord::Base
belongs_to :provisioning_template
belongs_to :template_kind
belongs_to :operatingsystem
validates :provisioning_template_id, :presence => true
validates :template_kind_id, :presence => true, :uniqueness => {:scope => :operatingsystem_id}

def name
"#{operatingsystem} - #{template_kind}"
end

def to_label
name
end
end
(35-35/62)