Categories: None [Edit]
enumerate
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
Total
Ranking: 104,680 of 187,591
Downloads: 7,282
Daily
Ranking: 58,794 of 187,571
Downloads: 9
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,165,649,814 | rake |
| 28 | 925,037,502 | rspec |
| 36 | 719,592,156 | activerecord |
| 275 | 165,742,106 | sqlite3 |
| 2,028 | 12,151,096 | appraisal |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | voltechs |