Sha256: 28a589e026410813026c9f0a72f5923af6b07cd8d9c3d18c1f5b37269b6971a7
Contents?: true
Size: 773 Bytes
Versions: 19
Compression:
Stored size: 773 Bytes
Contents
class ConfigurationOption < ActiveRecord::Base attr_protected :created_at, :updated_at validates :internal_identifier, :uniqueness => {:scope => :id, :case_sensitive => false} has_many :configuration_item_type_configuration_options has_many :configuration_item_types, :through => :configuration_item_type_configuration_options has_and_belongs_to_many :configuration_items validates :value, :presence => {:message => 'Value can not be blank.'} def to_js_hash { :id => self.id, :value => self.value, :description => self.description, :internalIdentifier => self.internal_identifier, :comment => self.comment, :createdAt => self.created_at, :updatedAt => self.updated_at } end end
Version data entries
19 entries across 19 versions & 1 rubygems