Sha256: ae90efb778a5e21192f50ef91b58d1ae320f3fe696aa40554a8b02f6f35c5a56
Contents?: true
Size: 284 Bytes
Versions: 3
Compression:
Stored size: 284 Bytes
Contents
class TestModel < ActiveRecord::Base has_enum :category, %w( stuff things misc ) has_enum :color , %w( red green blue ) , :scopes => true has_enum :size , %w( small medium large ) , :query_methods => false has_enum :status , [:pending, :failed, :done] end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
has_enum-0.6.1 | spec/test_model.rb |
has_enum-0.6.0 | spec/test_model.rb |
has_enum-0.5.0 | spec/test_model.rb |