ActiveRecord lacks solid meaniningful support for true enumeration in databases. The best, most efficient enumerations are stored as integers, however numbers are often less meaningful to humans. To combat this, ActiveEnum aims to converts quickly and efficiently between different formats when reading from and writing to a database.
Add this line to your application's Gemfile:
gem 'active_enum'And then execute:
$ bundle
Or install it yourself as:
$ gem install active_enum
Coming soon.
- Fork it ( https://github.com/twilightcoders/active_enum/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request