RubyMoney/money-rails

Deprecation warning for symbol_position

Pagehey opened this issue ยท 0 comments

Hi ! First, thank you for this gem, really useful ! ๐Ÿ‘

It works great, however it seems there is something wrong about a deprecation warning.

When I use the money_without_cents(...) helper, I have the following warning :
[DEPRECATION] 'symbol_position: :after' is deprecated - you can replace it with 'format: %n %u',
but when I do so in the initializer, I got an error from Money:
:symbol_position must be ':before' or ':after'

Checking the formatter file from Money I can conclude the error is the right hint.
I saw there was something about warning and this helper in the test, but I didn't figure out what it was about.

I hope it's not me misunderstanding something.

Thank you for your help ! ๐Ÿ™