cours0708/P5B/ruby/mon_projet/app/models/product.rb~

6 lines
151 B
Ruby
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
class Product < ActiveRecord::Base
belongs_to :supplier
belongs_to :customer
validates_presence_of :designation, :message => "ne peut être vide."
end