Class: HitCounter::UrlValidator

Inherits:
ActiveModel::EachValidator
  • Object
show all
Defined in:
lib/hit_counter.rb

Overview

Validates the HitCounter‘s URL.

If the URI library can parse the value and the scheme is valid, then we assume the url is valid.