RubyGems Navigation menu

enumify 0.0.5

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:
= 複製 已複製

安裝:
=

版本列表:

  1. 1.0.0 - December 01, 2016 (11.5 KB)
  2. 0.2.0 - September 21, 2016 (12.0 KB)
  3. 0.1.0 - September 26, 2014 (11.0 KB)
  4. 0.0.7 - April 09, 2014 (10.0 KB)
  5. 0.0.6 - April 02, 2014 (10.0 KB)
  6. 0.0.5 - October 14, 2013 (9.5 KB)
顯示所有版本(共 10)

Development 相依性套件 (5):

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

擁有者:

作者:

  • yon

SHA 256 checksum:

8b83d8460f9713ee7934903bf2b0a1f160791946ed9f5ee23a5fedd5e2814ca4

總下載次數 74,418

這個版本 3,446

License:

MIT

Ruby 版本需求:

相關連結: