Categories: None [Edit]

enumify

https://rubygems.org/gems/enumify
https://github.com/yonbergman/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,041 of 197,085
Downloads: 90,058

Daily

Ranking: 87,723 of 197,066
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,428,256,062rake
291,025,379,194rspec
37845,746,438activerecord
1,98315,922,445appraisal

Owners

#GravatarHandle
1iconyonbergman