Sha256: 8a6d0452fa37f248063fe07e741ed93a9d3031dd908e1aade619cdab6ce7daca
Contents?: true
Size: 338 Bytes
Versions: 56
Compression:
Stored size: 338 Bytes
Contents
module Katello module Validators class ContentDefaultHttpProxySettingValidator < ActiveModel::Validator def validate(record) proxy = HttpProxy.where(name: record.value).first return if proxy || record.value.blank? record.errors.add(:base, _('There is no such HTTP proxy')) end end end end
Version data entries
56 entries across 56 versions & 1 rubygems