examples/single_currency.rb in danconia-0.2.9 vs examples/single_currency.rb in danconia-0.3.0
- old
+ new
@@ -1,7 +1,8 @@
+# Example showing how to use a single currency.
+
# USD is the default currency if no configuration is provided
-puts (Money(10.25) / 2).inspect # => 5.125 USD
-puts (Money(10.25) / 2).to_s # => $5.13
+puts Money(10.25).inspect # => 5.125 USD
# Lets switch to other currency
Danconia.configure do |config|
config.default_currency = 'EUR'
config.available_currencies = [{code: 'EUR', symbol: '€'}]