acts_as_account implements double entry accounting for Rails models. Your models get accounts and you can do consistent transactions between them. Since the documentation is sparse, see the transfer.feature for usage examples.
Acts as account hooks into ActiveRecord and allows to add accounts to any model by simply adding “has_account” to your model. Because the accounts are connected via a has_many relation no migration to the account-hoder tables is needed.
We also hook into the ActionController request cycle to warn the developer if a Request has left the uncommitted changes in the system.
If you would like to run the cucumber features from the acs_as_account gem, just execute
Double Entry Accounting in a Relational Database: homepages.tcp.co.uk/~m-wigley/gc_wp_ded.html
add transaction isolation tests
Copyright © 2010 gut.org gAG