Closed ClaudioFloreani closed 6 months 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.
monetize :price_cents, numericality: { greater_than_or_equal_to: 0}, allow_blank: true
It would be nice if it raised an error for any unknown option.
please submit a PR to consider changing this
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.