From: Erik V. <eri...@xs...> - 2012-09-02 10:34:50
|
Hi Stefan, A few minor comments: > This easily allows to store all kind of CountableItems, for which money is only > one example (so in principle it is easy that Rails supports several currencies). Ah good. We still had no way to handle the Tresham-style Company Credits (1825 et al.). I suppose we now have. > To move money from one owner to the other the following static methods > are used: > > Currency.wire(MoneyOwner from, int amount, MoneyOwner to) > Currency.fromBank(int amount, MoneyOwner to) > Currency.toBank(MoneyOwner from, int amount) I hope the Bank is also a MoneyOwner? Erik |