diff --git a/lib/valid_email/email_validator.rb b/lib/valid_email/email_validator.rb index 72302ca..0fe7998 100644 --- a/lib/valid_email/email_validator.rb +++ b/lib/valid_email/email_validator.rb @@ -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