#---
# Excerpted from "Rails Recipes"
# We make no guarantees that this code is fit for any purpose. 
# Visit http://www.pragmaticprogrammer.com/titles/fr_rr for more book information.
#---

class Cart < ActiveRecord::Base
end


class Cart < ActiveRecord::Base
  has_and_belongs_to_many :products, 
                          :class_name => "ProductReference", 
                          :join_table => "carts_products", 
                          :association_foreign_key => "product_id"
end

