Sha256: d85afefb4b36cdeaded0ddcd7d503cacab35d900e17633813c5f10bd6ee7b371
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
# == requires # * code ( unique ) # * description ( unique and > 3 chars ) class Language < ActiveRecordShared acts_as_list default_scope :order => :position acts_like_a_hash has_many :interviews has_many :instrument_versions validates_presence_of :code validates_uniqueness_of :code # Returns description def to_s description end # Returns boolean of comparison # true only if key == 'other' def is_other? key == 'other' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | app/models/language.rb |