Sha256: 8d728e088afe7c4c2e3ec7095f39b45a3ddcc94ffce540188b3a1865fef1cb74

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

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.

== Theory

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
* rake features:create_database 
* cucumber

== Links

* Double Entry Accounting in a Relational Database: http://homepages.tcp.co.uk/~m-wigley/gc_wp_ded.html

== Todo

* add transaction isolation tests

== Credits

This gem was written for the payment backend of betterplace.org by Thies C. Arntzen (http://github.com/thieso2) and Norman Timmler (http://github.com/unnu).

== Copyright

Copyright (c) 2010 gut.org gAG

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_account-1.1.1 README.rdoc
acts_as_account-1.1.0 README.rdoc