search for: const_id

Displaying 1 result from an estimated 1 matches for "const_id".

Did you mean: boost_id
2005 Aug 19
13
Enumerations (again): Comments please
...end @@enumeration_specs[class_name] = spec end end class EnumRecord < ActiveRecord::Base @@all = nil def self.reset @@all = nil end protected def after_initialize freeze end end def self.define_if_enumeration(const_id) spec = @@enumeration_specs[const_id] return nil unless spec order = spec[:order] || ''position'' class_def = <<-END class #{spec[:class_name]} < BoilerPlate::Enumerations::EnumRecord def self.all return @@all if @@all...