RubyMoney / money-rails

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

:allow_blank not allowed on monetize #671

Closed ClaudioFloreani closed 6 months ago

ClaudioFloreani commented 1 year ago

In monetize :price_cents, numericality: { greater_than_or_equal_to: 0}, allow_blank: true, the :allow_blank option is silently ignored. It leads to confusing "not a number validation errors" which are hard to debug.

sunny commented 1 year ago

It would be nice if it raised an error for any unknown option.

semmons99 commented 6 months ago

please submit a PR to consider changing this