Sha256: 39981f78a2acef37b61222aa7543bb00c807dd8464cb856d31752cd7a274e1f7
Contents?: true
Size: 160 Bytes
Versions: 3
Compression:
Stored size: 160 Bytes
Contents
class Product < ActiveRecord::Base validates_presence_of :name, :code validates_length_of :name, :in => 3..10 validates_length_of :code, :in => 3..10 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dejavu-0.1.2 | test_app/app/models/product.rb |
dejavu-0.1.1 | test_app/app/models/product.rb |
dejavu-0.1.0 | test_app/app/models/product.rb |