Skip to content

Double entry accounting system for Rails models. Your models get accounts and you can do consistent transactions between them.

License

Notifications You must be signed in to change notification settings

netconstructor/acts_as_account

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acts_as_account

Theory

ActsAsAccount implements a “Double Entry Accounting” system for your Rails-models.

It hooks into ActiveRecord and allows to add accounts to any model by simply means of adding “has_account” to your model. Because the accounts are connected via a has_many relation no migration to the account-holder 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.

How to test

Run the cucumber features from the acs_as_account gem, just execute

  • rake features:create_database

  • cucumber

Credits

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

Copyright © 2010 gut.org gAG

About

Double entry accounting system for Rails models. Your models get accounts and you can do consistent transactions between them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published