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: 106,842 of 196,658
Downloads: 7,743
Daily
Ranking: 111,482 of 196,619
Downloads: 0
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 |
|---|---|---|
| 8 | 1,416,600,134 | rake |
| 29 | 1,020,526,382 | rspec |
| 37 | 839,032,779 | activerecord |
| 286 | 195,503,478 | sqlite3 |
| 1,986 | 15,746,021 | appraisal |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | voltechs |