1 class Order
< ActiveRecord
::Base
7 ["Purchase order", "po"]
10 validates_presence_of
:name, :address, :email, :pay_type
11 validates_inclusion_of
:pay_type, :in =>
12 PAYMENT_TYPES
.map
{|disp
, value
| value
}
14 # def add_line_items_from_cart(cart)
15 # cart.items.each do |item|
16 # li = LineItem.from_cart_item(item)