Sam_G
(Sam G)
1
Right now I have this
lineitem_00001:
id: 1
orderrequest_id: 1
product_id: 5
quantity: 20
total_price: <%= 20 * Product.find_by_id(5).price%>
Is it possible for the yaml parser to do something like this:?
total_price: <%= quantity * Product.find_by_id(product_ID).price%>
Sam_G
(Sam G)
2
On second hand, nevermind... I dont need to do this
Phlip
(Phlip)
3
sjgdev wrote:
On second hand, nevermind... I dont need to do this
Please supply what you _did_ do. Otherwise, you left an enticing hit
for a Google search on [dynamic yaml fixtures], with no conclusion.