RubyGems Navigation menu

enumerate 0.0.4

Enumerate adds an `enumerate` command to all ActiveRecord models, enabling you to work with string or integer columns as if they were enums. The following features are added to your model: Validation - ensures that the field only receives accepted values Predicate Methods - adds ? and ! functions for each enum value Scopes - you can easily query for values of the enum

Gemfile:
=

instalar:
=

Versiones:

  1. 0.0.7 March 18, 2014 (9,5 KB)
  2. 0.0.4 November 01, 2013 (9 KB)
Mostrar todas las versiones (6 total)

dependencias de Development (5):

activerecord >= 3.0
appraisal >= 0.3.8
rake >= 0
rspec >= 0
sqlite3 >= 0

Propietarios:

Autores:

  • Dale

SHA 256 checksum:

=

Total de descargas 6.752

Para esta versión 2.914

Versión publicada:

Licencia:

MIT

Versión de Ruby requerida: Ninguno

Enlace: