RubyGems Navigation menu

enumerate 0.0.7

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

安裝:
=

版本列表:

  1. 0.0.7 - March 18, 2014 (9.5 KB)
  2. 0.0.4 - November 01, 2013 (9.0 KB)
顯示所有版本(共 6)

Development 相依性套件 (5):

activerecord >= 3.0.6, ~> 3.0
appraisal >= 0.3.8, ~> 0.3
rake >= 0.9.3, ~> 0.9
rspec >= 2.3.0, ~> 2.3
sqlite3 >= 1.3.3, ~> 1.3

擁有者:

作者:

  • Dale

SHA 256 總和檢查碼:

9b5eae4285efa14c6988b4a7ccdbca7d5cb639ac2e67c4ca02c17e6e2ae7825f

總下載次數 6,620

這個版本 3,705

授權:

MIT

Ruby 版本需求:

相關連結: