RubyMoney/money-rails

:allow_blank not allowed on monetize

Closed this issue · 2 comments

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

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

please submit a PR to consider changing this