On 7 October 2015 at 14:30, peter williams <[email protected]> wrote: > @Андрей Молчанов > I have a method add_product in the cart_model that's supposed to capture > the price from line_item. Within the new migration AddPriceToLineItem i was > given the hint > to iterate over the LineItem.all.each do |item| > > add the product_price to each item in LineItem > > end > > If the price is being parsed around objects doesn't it make sense to monitor > it? > What if the cart has problems obtaining the price properly?
Please quote the relevant parts of the previous message when replying. Since you have not done so it is not easy to see which points you are commenting on. I don't know what you mean by "parsed around objects" I guess you probably meant "passed around objects" but even then I don't know what you mean, and I also don't know what you mean by "monitor it". Also you ask what if the cart has problems obtaining the price properly, again I don't know what you mean. Please try again to ask the questions. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvKsMXBxvQO-g2Y8w1T-agQKTFxajyhOS-nqSfCvqRYkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

