Sha256: 5cb68bc1a40e496b62b0d3563b15c663d2070742e169fa1f05d8a1f721af984b
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
class TestModel < ActiveRecord::Base has_enum :category, %w[stuff things misc], :presence => {:on => :update} has_enum :color, %w[red green blue], :scopes => true has_enum :size, :query_methods => false has_enum ["status", :state], [:pending, :failed, :done], :presence => true has_enum :speed, %w[slow normal fast], :multiple => true, :presence => true end class AnotherModel < ActiveRecord::Base has_enums end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
has_enum-0.9.1 | spec/test_model.rb |
has_enum-0.9.0 | spec/test_model.rb |