Fix Money deprecation warning with :rounding_mode

This removes the deprecation warning:

```
[WARNING] The default rounding mode will change from `ROUND_HALF_EVEN`
to `ROUND_HALF_UP` in the next major release. Set it explicitly using
`Money.rounding_mode=` to avoid potential problems.
```

by specifying the default rounding mode at boot time so that it's only
set once for the whole app. See
https://github.com/RubyMoney/money#rounding for details.
This commit is contained in:
Pau Perez
2021-03-08 10:44:02 +01:00
parent 96bcde61a3
commit ccfb6ae26e

View File

@@ -0,0 +1 @@
Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN