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
Required Ruby Version
None
Authors
Dale
Versions
-
0.0.7
-
source
- 0.0.7 source March 18, 2014 (9.5 KB)
-
-
0.0.4
-
source
- 0.0.4 source November 01, 2013 (9 KB)
-