class IcoValidator

Public Instance Methods

validate_each(record, attribute, value) click to toggle source
# File lib/ico-validator/ico_validator.rb, line 9
def validate_each(record, attribute, value)
  record.errors.add(attribute, :invalid_format) unless IcoValidation.valid_ico?(value)
end