Sha256: 0b714e2bb32ccea620473d148ade51dbb858459c81a254e12a5273d280c58004
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
class Product < ActiveRecord::Base belongs_to :category has_many :colors validates_presence_of :category validates_presence_of :name, :code validates_length_of :name, :in => 3..10 validates_length_of :code, :in => 3..10 validates_length_of :virtual, :in => 3..10 accepts_nested_attributes_for :category, :colors attr_accessor :virtual end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dejavu-0.3.1 | test_app/app/models/product.rb |
dejavu-0.3.0 | test_app/app/models/product.rb |
dejavu-0.2.1 | test_app/app/models/product.rb |