Categories: None [Edit]
enumify
Enumify lets you add an enum command to ActiveRecord models
There are four things that the enumify gems adds to your model
Validation - The enumify adds a validation to make sure that the field only receives accepted values
Super Cool Methods - adds ? and ! functions for each enum value (canceled? - is it canceled, canceled! - change the state to canceled)
Callback support - you can add a x_callback method which will be called each time the status changes
Scopes - you can easily query for values of the enum
Total
Ranking: 20,189 of 198,547
Downloads: 90,506
Daily
Ranking: 28,738 of 198,526
Downloads: 14
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,465,258,777 | rake |
| 29 | 1,041,430,938 | rspec |
| 37 | 867,865,957 | activerecord |
| 1,976 | 16,512,424 | appraisal |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | yonbergman |