#START:has_many
class Order < ActiveRecord::Base

  has_many :line_items

#END:has_many

#START:select
  PAYMENT_TYPES = [
    [ "Chèque",          "check" ], 
    [ "Carte bancaire",    "cc"    ],
    [ "Bon de commande", "po"    ]
  ].freeze
#END:select

#START:validates
  validates_presence_of :name, :email, :address, :pay_type
#END:validates

#START:has_many
end
#END:has_many
