Skip to Content Skip to Search
Methods
V

Instance Public methods

validate_each(record, attribute, value)

# File app/validators/valid_url_validator.rb, line 2
def validate_each(record, attribute, value)
  unless Util::Url.valid_url?(value)
    record.errors.add(attribute, "is not a valid URL")
  end
end