Sha256: 6f5e17066c582cf469ed0f0a4c45d2fff480999ba0e1cbaacacdb08e6d88ceb4
Contents?: true
Size: 596 Bytes
Versions: 12
Compression:
Stored size: 596 Bytes
Contents
class ConfigurationOption < ActiveRecord::Base validates :internal_identifier, :uniqueness => {:scope => :id} has_and_belongs_to_many :configuration_item_types 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
12 entries across 12 versions & 1 rubygems