RubyGems Navigation menu

enumify 0.2.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

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 1.0.0 - December 01, 2016 (11.5KB)
  2. 0.2.0 - September 21, 2016 (12KB)
  3. 0.1.0 - September 26, 2014 (11KB)
  4. 0.0.7 - April 09, 2014 (10KB)
  5. 0.0.6 - April 02, 2014 (10KB)
全てのバージョンを表示(全10件)

Development依存関係 (4):

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

所有者:

作者:

  • yon

SHA 256チェックサム:

7b9e05f920f04a48ba7cf31f38c4a7de97d8f2e0e6bd1285c07e01563bb9cbcd

累計ダウンロード数 74,418

このバージョンのみ 7,387

ライセンス:

MIT

必要なRubyのバージョン: >= 0

リンク: