lib/danconia/money.rb in danconia-0.2.3 vs lib/danconia/money.rb in danconia-0.2.4
- old
+ new
@@ -73,9 +73,13 @@
def in_cents
(self * 100).round
end
+ def as_json *args
+ amount.as_json *args
+ end
+
def default_currency?
currency.code == Danconia.config.default_currency
end
def method_missing method, *args