Sha256: c84a4363efe70649828428a7a50507c7eadced19858d966595f1ba4fbd76e2b3
Contents?: true
Size: 577 Bytes
Versions: 6
Compression:
Stored size: 577 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, :validates => 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
6 entries across 6 versions & 1 rubygems