README.markdown in plutus-0.12.2 vs README.markdown in plutus-0.13
- old
+ new
@@ -5,12 +5,12 @@
The Plutus plugin is a Ruby on Rails Engine which provides a double entry accounting system for your application.
Compatibility
=============
-* Ruby versions: MRI 1.9.3 - 2.2, Rubinius 2.2, JRuby 1.7+
-* Rails versions: ~> 4.0
+* Ruby versions: MRI 2.2.2+ (should work with earlier versions if using Rails 4)
+* Rails versions: ~> 5.0, ~> 4.0
For earlier versions, and upgrading, please see the section titled [Previous Versions](https://github.com/mbulat/plutus#previous-versions)
Installation
============
@@ -289,11 +289,24 @@
Plutus.config do |config|
config.enable_tenancy = true
config.tenant_class = 'Tenant'
end
```
+*NOTE: When building entries, be sure to specify the account directly, rather than use the `account_name` feature. Otherwise you'll probably end up with the wrong account.*
+```ruby
+debit_account = Plutus::Acount.where(:name => "Cash", :tenant => my_tenant).last
+credit_account = Plutus::Acount.where(:name => "Unearned Revenue", :tenant => my_tenant).last
+entry = Plutus::Entry.new(
+ :description => "Order placed for widgets",
+ :date => Date.yesterday,
+ :debits => [
+ {:account => debit_account, :amount => 100.00}],
+ :credits => [
+ {:account => credit_account, :amount => 100.00}])
+```
+
Reporting Views
===============
The Engine provides controllers and views for rendering basic reports, including a Balance Sheet and Income Statement.
@@ -313,11 +326,11 @@
Previous Versions
=================
For the rails 3 version, you can go here:
-[https://github.com/mbulat/plutus](https://github.com/mbulat/plutus/tree/rails3)
+[https://github.com/mbulat/plutus/tree/rails3](https://github.com/mbulat/plutus/tree/rails3)
For the rails 2 version, you can go here:
[https://github.com/mbulat/plutus/tree/rails2](https://github.com/mbulat/plutus/tree/rails2)
@@ -377,6 +390,6 @@
[http://amzn.com/0324662963](http://amzn.com/0324662963)
* * *
-Copyright (c) 2010-2012 Michael Bulat
+Copyright (c) 2010-2016 Michael Bulat