lib/lite/validators/url_validator.rb in lite-validators-1.1.1 vs lib/lite/validators/url_validator.rb in lite-validators-1.1.2
- old
+ new
@@ -2,10 +2,10 @@
require 'uri'
class UrlValidator < BaseValidator
- SCHEMES ||= %w[
+ SCHEMES = %w[
http https
].freeze
def validate_each(record, attribute, value)
assign_attr_readers(record, attribute, URI.parse(value.to_s))