Change money initializer to use ENV vars instead of Spree::Config

This commit is contained in:
Shen Sat
2021-05-19 08:44:55 +01:00
parent 6a8ee544e8
commit ab027d6af6

View File

@@ -1,2 +1,2 @@
Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN
Money.default_currency = Money::Currency.new(Spree::Config[:currency])
Money.default_currency = Money::Currency.new(ENV.fetch('CURRENCY'))