amountable 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amountable/jsonb_methods.rb +1 -1
- data/lib/amountable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38e5aad7e7246e55d83ff7e5688d7a457de24004
|
4
|
+
data.tar.gz: 151baa58f088ebb8436a8b1a7662c42c6bbbc1c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b48cc8db135bbac543c55a306c7a76b69a9ec1501abc11cd10ec235b748a9a6a06ac3194c000df32ed21670bbe72ddd00d33db22c1d3537f28d2d2da0a8cc0d
|
7
|
+
data.tar.gz: 5fef1118f77194b550dc7f015e75c19292df7d54cfed468433abf306a7a90034ba5c0a8cf1108a2b295f8ebc294563531b482512cd821117c7e1df14a92b363c
|
@@ -6,7 +6,7 @@ module Amountable
|
|
6
6
|
|
7
7
|
def amounts
|
8
8
|
@_amounts ||= attribute(amounts_column_name).to_h['amounts'].to_h.map do |name, amount|
|
9
|
-
Amount.new(name: name, value_cents: amount['cents'], value_currency: amount['
|
9
|
+
Amount.new(name: name, value_cents: amount['cents'], value_currency: amount['currency'], persistable: false, amountable: self)
|
10
10
|
end.to_set
|
11
11
|
end
|
12
12
|
|
data/lib/amountable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amountable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emmanuel Turlay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|