Sha256: 8e50a1fcebfcbbf947f0b79850c815449808e384a02b441f5fa278ad6273512b

Contents?: true

Size: 253 Bytes

Versions: 6

Compression:

Stored size: 253 Bytes

Contents

class TestModel < ActiveRecord::Base
  has_enum :category, %w( stuff things misc )
  has_enum :color   , %w( red green blue )
  has_enum :size    , %w( small medium large )   , :query_methods => false
  has_enum :status  , [:pending, :failed, :done]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
has_enum-0.4.0 spec/test_model.rb
has_enum-0.3.4 spec/test_model.rb
has_enum-0.3.3 spec/test_model.rb
has_enum-0.3.2 spec/test_model.rb
has_enum-0.3.1 spec/test_model.rb
has_enum-0.3.0 spec/test_model.rb