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,820 of 188,252
Downloads: 7,366
Daily
Ranking: 88,108 of 188,232
Downloads: 1
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,188,890,086 | rake |
| 29 | 935,425,343 | rspec |
| 36 | 732,685,118 | activerecord |
| 275 | 169,053,244 | sqlite3 |
| 2,028 | 12,482,758 | appraisal |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | voltechs |