sevenwire-money 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/money/core_extensions.rb +7 -0
- data/money.gemspec +1 -1
- metadata +1 -1
|
@@ -16,6 +16,9 @@ class Numeric
|
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def to_micro_money
|
|
20
|
+
to_money(:millicents)
|
|
21
|
+
end
|
|
19
22
|
|
|
20
23
|
def millicents
|
|
21
24
|
MicroMoney.new(self).to_money
|
|
@@ -70,4 +73,8 @@ class String
|
|
|
70
73
|
end
|
|
71
74
|
end
|
|
72
75
|
|
|
76
|
+
def to_micro_money
|
|
77
|
+
to_money(:millicents)
|
|
78
|
+
end
|
|
79
|
+
|
|
73
80
|
end
|
data/money.gemspec
CHANGED