diff --git a/lib/http_url_validator.rb b/lib/http_url_validator.rb index c122927a168..258772a9dee 100644 --- a/lib/http_url_validator.rb +++ b/lib/http_url_validator.rb @@ -3,6 +3,6 @@ def validate_each(record, attribute, value) uri = URI::DEFAULT_PARSER.parse(value) record.errors.add attribute, "is not a valid URL" unless [URI::HTTP, URI::HTTPS].member?(uri.class) rescue URI::InvalidURIError - record.errors.add attribute, "is not a valid URL" + record.errors.add attribute, "is not a valid URL" end end