Provide an ActiveRecord model that behaves as a database-backed enumeration between indices and symbolic values. This allows us to have a valid foreign key which behaves like a enumeration. Values are cached at startup, and cannot be changed.
iknow / persistent_enum Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ceregousa/persistent_enum
ActiveRecord database-backed enumeration
License: BSD 2-Clause "Simplified" License