RubyGems Navigation menu

enumify 0.0.4

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

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 1.0.0 - December 01, 2016 (11,5 KB)
  2. 0.2.0 - September 21, 2016 (12 KB)
  3. 0.1.0 - September 26, 2014 (11 KB)
  4. 0.0.7 - April 09, 2014 (10 KB)
  5. 0.0.6 - April 02, 2014 (10 KB)
  6. 0.0.4 - August 06, 2013 (9 KB)
Zeige alle Versionen (10 total)

Development Abhängigkeiten (4):

rake >= 0
rspec >= 0
sqlite3 >= 0

Besitzer:

Autoren:

  • yon

SHA 256-Prüfsumme:

b9a7f3a46c97faca9d0b7e151ed2cb17443a41466d4edd9bcdc9330be47a4083

Downloads insgesamt 74.465

Für diese Version 3.275

Lizenz:

MIT

Erforderliche Ruby-Version: None

Links: