Decoupled carts and orders
[depot.git] / app / models / line_item.rb
index 61161a02a87601a5cf550bf08fd26cb071d80c20..3e3afed73532113bdaae232dbbf698c4d97fff0d 100644 (file)
@@ -2,11 +2,11 @@ class LineItem < ActiveRecord::Base
   belongs_to :order
   belongs_to :product
 
-  def self.from_cart_item(cart_item)
-    li = self.new
-    li.product      = cart_item.product
-    li.quantity     = cart_item.quantity
-    li.total_price  = cart_item.price
-    li
-  end
+#  def self.from_cart_item(cart_item)
+#    li = self.new
+#    li.product      = cart_item.product
+#    li.quantity     = cart_item.quantity
+#    li.total_price  = cart_item.price
+#    li
+#  end
 end