Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Double entry accounting system for Rails models. Your models get accounts and you can do consistent transactions between them.
Failed to load latest commit information.
db Fixed problem that broke STI classes that used has_account in Rails 3.x
features Added rails 4.1 compatibility
lib Posting scope corrected for rails 4
.gitignore ignore ruby-version
.specification Upgrade acts_as_account to work with rails 3.
.travis.yml
CHANGELOG.md Adds Changelog and Rails 4 notice
Gemfile Be less strict in depending on 4.1 and better
Gemfile.lock Be less strict in depending on 4.1 and better
LICENSE Update LICENSE
README.rdoc Adds Changelog and Rails 4 notice
Rakefile Bump version to 3.1.1
VERSION New version
acts_as_account.gemspec Regenerate gemspec for version 3.1.1
cucumber.yml Upgrade acts_as_account to work with rails 3.
init.rb Upgrade acts_as_account to work with rails 3.

README.rdoc

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.

Support

Rails 4 is supported since version 3.1.0

How to test

Run the cucumber features from the acs_as_account gem, just execute

  • rake features:create_database

  • cucumber

Links

Compatibility

With the release of version 2.0.0 acts_as_account is supposed to work for Rails 3. If you still use Rails 2 please use version 1.2.0.

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

Copyright © 2010 gut.org gAG

Something went wrong with that request. Please try again.