Closed JoeWoodward closed 1 month 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)
rescue URI::InvalidURIError
:url
options.fetch(:message)
https://github.com/perfectline/validates_url/blob/master/lib/validate_url.rb#L66
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 ofoptions.fetch(:message)
https://github.com/perfectline/validates_url/blob/master/lib/validate_url.rb#L66