cart.rb

Path: app/models/cart.rb
Last Update: Mon Mar 07 13:53:05 CST 2005

A Cart consists of a list of LineItem objects and a current total price. Adding a product to the cart will either add a new entry to the list or increase the quantity of an existing item in the list. In both cases the total price will be updated.

Class Cart is a model, but does not represent information stored in the database. It therefore does not inherit from ActiveRecord::Base.

[Validate]