mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
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:
1
config/initializers/money.rb
Normal file
1
config/initializers/money.rb
Normal file
@@ -0,0 +1 @@
|
||||
Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN
|
||||
Reference in New Issue
Block a user