daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def add_products(cart_products) # TODO: Break this method up into smaller methods
  2.       order_products              = []
  3.       cart_products.each do |cart_product|
  4.         order_product = cart_product.create_order_product(self.id)
  5.         order_products << order_product
  6.         cart_product.create_order_product_customizations(order_product)
  7.       end
  8.       self.order_products = order_products
  9.       self.add_note("Products added to order")
  10.       self.update_order_product_customizations_has_changed
  11.      
  12.       return order_products
  13.     end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top