kristindiannefoss / little_shop

1 stars 0 forks source link

use mapped values to clean up total price #76

Closed kristindiannefoss closed 8 years ago

kristindiannefoss commented 8 years ago

In cart.rb

mapped values will be an array of all the cart items, you can call qnt, price, total price, you can use reduce on that

else mapped_items.reduce(total_price)