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: 18,665 of 183,107
Downloads: 78,343
Daily
Ranking: 35,920 of 183,092
Downloads: 3
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 | 953,844,246 | rake |
25 | 817,849,894 | rspec |
35 | 595,989,894 | activerecord |
2,068 | 8,709,738 | appraisal |
Owners
# | Gravatar | Handle |
---|---|---|
1 | yonbergman |