My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 72 attachment: order_line_items_belongs_to_orders.patch (675 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/order_line_item.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/order_line_item.rb (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/order_line_item.rb (working copy)
@@ -1,6 +1,7 @@
class OrderLineItem < ActiveRecord::Base
belongs_to :product
belongs_to :item
+ belongs_to :order
alias_attribute :price, :unit_price
# Creates and returns a line item when a product is passed in
def self.for_product(item)

Powered by Google Project Hosting