money-rails宝石将抛出以下警告
[DEPRECATION] You are using the default localization behaviour that will change in the next major release. Find out more - https://github.com/RubyMoney/money#deprecation文件上说:
Money.locale_backend = :i18n此外,增加:
en:
number:
currency:
format:
delimiter: ","
separator: "."
# falling back to
number:
format:
delimiter: ","
separator: "."更新en.yml文件是不言自明的。但是,文档不清楚在何处设置Money.locale_backend = :i18n。
这应该在一个新的初始化器中吗?
发布于 2018-12-01 07:02:14
您可以在config/initializers/money.rb中设置它
https://stackoverflow.com/questions/53568064
复制相似问题