perfectline / validates_url

URL Validation for Rails
MIT License
583 stars 113 forks source link

Message option skipped if invalid URI #122

Closed JoeWoodward closed 1 month ago

JoeWoodward commented 3 years ago

I'm not actually using the gem but I was looking how it's implemented and noticed that when rescue URI::InvalidURIError is triggered you are applying :url instead of options.fetch(:message)

https://github.com/perfectline/validates_url/blob/master/lib/validate_url.rb#L66