search for: orderable_type

Displaying 2 results from an estimated 2 matches for "orderable_type".

2013 May 14
5
Why joins queries make result readonly?
...xecutors"."order_id" = "orders"."id" INNER JOIN "specialists" ON "specialists"."id" = "order_executors"."specialist_id" WHERE "specialists"."id" = 1 => [#<Order id: 20, orderable_id: 11, orderable_type: "PlanDevelopment", client_id: 1, completion_status: "finished", created_at: "2013-05-13 20:48:19", updated_at: "2013-05-14 00:36:38", price: #<BigDecimal:67e5898,''0.14E2'',9(36)>>] I see no additional columns but Order.by_execut...
2006 Nov 22
1
Polymorphic Data Modelling Question
Hello, I am not sure of the best way to model this situation in Rails and would appreciate some guidance. An order can hold multiple line items. Each line item is for a certain number of any given product. There are four products, each in a different table because they have completely different attributes. So I have: Order - has many LineItems LineItem - belongs to an Order