Skip to content

Commit aa4886a

Browse files
committed
allow blank in numericality validation, since there is a more meaningful presence error message added elsewhere
1 parent cb92082 commit aa4886a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/state_file1099_r.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class StateFile1099R < ApplicationRecord
7171
numericality: {
7272
greater_than_or_equal_to: 0,
7373
less_than_or_equal_to: BigDecimal(10**10),
74+
allow_blank: true
7475
},
7576
presence: {
7677
message: proc { I18n.t('forms.errors.no_money_amount') }

0 commit comments

Comments
 (0)