acts_as_account 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1bf5765e18dcdbb24c71034bd6021c1f68f4cd7
4
- data.tar.gz: 54c4786f09c717926f0e898be9b6bad632ef671b
3
+ metadata.gz: 1e4b9d9a8021a37ab77cd81cb132783f6a97a6a2
4
+ data.tar.gz: 6a814f056664c1ac989a4475409968b3dbd0b11e
5
5
  SHA512:
6
- metadata.gz: fa388f10b0c0b5c3540039d3227fd54c75028d8795f5f5646ee38dc0514ff2b48a27c7b922043d6b6b949ae5a6ab14051e641ef1dcd96b09b1afccdf47436a7e
7
- data.tar.gz: 4ee86cdd03e248163dd3d5033ba724ef95a64a3c5f9860a65e933d6241ca979a0dc68868aa1d03caebebabdb8a9a6351e86ad607a0dedf168f3cb544f82a2cf3
6
+ metadata.gz: 62dc3234a50a85aa9e26d9ddc59580cfb01386262b0d981c956f05b07c09655e77e40562ae7887fc4734d78f6674525a1b3a33e86f11d7e75a7c6ff6278645f4
7
+ data.tar.gz: 42fa52c418890778f3ec3d9a8ffa69b8be79574bba1f9b545dd20d380c07770cc988f95400029b964d65baf0db0c97dd06edd794d6cce9c0e487f82c3057060c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
@@ -53,11 +53,10 @@ module ActsAsAccount
53
53
  :reference => reference,
54
54
  :valuta => valuta)
55
55
 
56
- account.reload.balance += posting.amount
57
- account.postings_count += 1
56
+ account.class.update_counters account.id, :postings_count => 1, :balance => posting.amount
58
57
 
59
58
  posting.save(:validate => false)
60
59
  account.save(:validate => false)
61
60
  end
62
61
  end
63
- end
62
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_account
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord