RubyGems Navigation menu

enumify 0.1.0

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

Versions:

  1. 0.1.0 - September 26, 2014 (11 KB)
  2. 0.0.7 - April 9, 2014 (10 KB)
  3. 0.0.6 - April 2, 2014 (10 KB)
  4. 0.0.5 - October 14, 2013 (9.5 KB)
  5. 0.0.4 - August 6, 2013 (9 KB)
Show all versions (8 total)

Authors:

  • yon

Owners:

2f7eb8e439ce2d288dcfa240b5210664

Sha 256 checksum:

266474ca04604d4b160ab2fec2e9f9981f00e9f7cefcd5d999142d1a694f5f4b

Total downloads 11,114

For this version 845

Show all versions (8 total)

Required Ruby Version: >= 0

Licenses:

MIT

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: