small medium large xlarge

Posts by Dennis Sutch

Generic-user-small
05 Feb 2014, 03:21
Dennis Sutch (9 posts)
(from Agile Web Development with Rails 4 > Ch.10 combining items in cart)

The migration is required for instances where multiple duplicate items were added before the quantity was added to line_items. If you had two separate line_items that each had Coffeescript before the quantity was added, the cart would end up with two separate line_items for Coffeescript–one having a quantity of 1 and the other with 1 + however many were added after the quantity enhancement.

9 posts