Class | Order
In: | app/models/order.rb
Parent: | ActiveRecord::Base

### Methods

add_line_items_from_cart

### Constants

PAYMENT_TYPES | = | [ # Wyświetlane przechowywane w bazie danych [ "Czek", "check" ], [ "Karta kredytowa", "cc" ], [ "Zlecenie zakupu", "po" ]

### Public Instance methods

add_line_items_from_cart(cart)

[Source]

        # File app/models/order.rb, line 13
    13:   def add_line_items_from_cart(cart)
    14:     cart.items.each do |item|
    15:       li = LineItem.from_cart_item(item)
    16:     line_items << li
    17:     end
    18:   end

[Validate]