Ruby on Rails
Wednesday, October 7, 2015
@Андрей Молчанов
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?
thx
-- 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?
thx
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2b928892-9396-4665-aadc-e9a628a2df8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment