Project

General

Profile

Download (377 Bytes) Statistics
| Branch: | Tag: | Revision:
class OsDefaultTemplate < ActiveRecord::Base
belongs_to :config_template
belongs_to :template_kind
belongs_to :operatingsystem
validates :config_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
(36-36/60)