riboseinc / uri_format_validator

Validate URL for Rails
MIT License
3 stars 2 forks source link

Ambiguities when defining validations #76

Closed skalee closed 6 years ago

skalee commented 6 years ago

Following from:

validates :url, uri_format: true_or_options

Has been observed to fail randomly with undefined method `new' for UriFormatValidator:Module exception. The workaround for now is to use fully qualified validator name:

validates :url, "uri_format_validator/validators/uri_format" => true_or_options

It will be fixed along with #46.

ribose-jeffreylau commented 6 years ago

Thanks @skalee !