We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0cf7c0 commit 9245799Copy full SHA for 9245799
spec/configuration_spec.rb
@@ -76,7 +76,7 @@
76
value = Money.new(-12345600, "EUR")
77
symbol = Money::Currency.find(:eur).symbol
78
79
- MoneyRails.default_format = {symbol_position: :after}
+ MoneyRails.default_format = { format: '%n%u' }
80
expect(value.format).to match(/#{symbol}\z/)
81
82
# Override with "classic" format options for backward compatibility
spec/dummy/config/initializers/money.rb
@@ -1,6 +1,8 @@
1
# encoding : utf-8
2
3
MoneyRails.configure do |config|
4
+ Money.locale_backend = :i18n
5
+ Money.rounding_mode = BigDecimal::ROUND_HALF_UP
6
7
# To set the default currency
8
#
0 commit comments