RubyMoney / money-rails

Integration of RubyMoney - Money with Rails
MIT License
1.79k stars 386 forks source link

Deprecation warning for symbol_position #654

Closed Pagehey closed 1 year ago

Pagehey commented 2 years ago

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 ! 🙏