Skip to content

Commit

Permalink
Fix broken validation messages
Browse files Browse the repository at this point in the history
A typo in #122 appears to
have introduced an error here that's causing a large number of test
failures.

Closes #124, closes #123
  • Loading branch information
Simon Coffey authored and hallelujah committed Sep 8, 2023
1 parent a92055d commit 398c525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/valid_email/email_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def validate_each(record,attribute,value)
end
unless r
msg = (options[:message] || I18n.t(:invalid, :scope => "valid_email.validations.email"))
record.errors.add attribute, message: I18n.interpolate(msgs, value: value)
record.errors.add attribute, message: I18n.interpolate(msg, value: value)
end
end
end

0 comments on commit 398c525

Please sign in to comment.