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: 19,559 of 192,062
Downloads: 86,767
Daily
Ranking: 14,916 of 192,034
Downloads: 71
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,289,326,548 | rake |
| 29 | 969,971,018 | rspec |
| 36 | 777,646,513 | activerecord |
| 2,014 | 13,735,521 | appraisal |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | yonbergman |