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: 19,949 of 196,643
Downloads: 89,751

Daily

Ranking: 21,610 of 196,611
Downloads: 8

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,406,261,007rake
291,016,069,266rspec
37833,443,753activerecord
1,98715,563,464appraisal

Owners

#GravatarHandle
1iconyonbergman