RubyGems Navigation menu

enumerate 0.0.4

Enumerate adds an `enumerate` command to all ActiveRecord models, enabling you to work with string or integer columns as if they were enums. The following features are added to your model: Validation - ensures that the field only receives accepted values Predicate Methods - adds ? and ! functions for each enum value Scopes - you can easily query for values of the enum

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.0.7 - March 18, 2014 (9.5 KB)
  2. 0.0.4 - November 01, 2013 (9 KB)
Show all versions (6 total)

Development Dependencies (5):

activerecord >= 3.0
appraisal >= 0.3.8
rake >= 0
rspec >= 0
sqlite3 >= 0

Owners:

Authors:

  • Dale

SHA 256 checksum:

e8ff0f568adc07482ebd6545d0b40f1517f68e9f04d0dce032a7538df7a2f7ba

Total downloads 6,593

For this version 2,842

License:

MIT

Required Ruby Version: None

Links: