0f1d52e731588dd79ac0bde3fe487761d93ad3be
8 def add_product(product
)
9 current_item
= @items.find
{|item
| item
.product
== product
}
11 current_item
.increment_quantity
13 @items << CartItem
.new(product
)
18 @items.sum
{|item
| item
.price
}