Skip to content

Commit

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

Closes hallelujah#124, closes hallelujah#123
  • Loading branch information
Simon Coffey committed Jun 19, 2023
1 parent a92055d commit c52c583
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 c52c583

Please sign in to comment.