search for: add_money

Displaying 1 result from an estimated 1 matches for "add_money".

Did you mean: add_model
2006 Mar 30
2
Transactions with different types of model object
...objects, say an account, a person and a tree : account=Account.find(... person=Person.find(... tree=Tree.find(... How do i start a transaction over the three of them. As far as i am aware doing it like this only covers the account objects : Account.transaction do account.withdraw(20) person.add_money(200) tree.remove_leaves(23) end Any ideas?? Thanks, Chris -- Posted via http://www.ruby-forum.com/.