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

Version Path
katello-4.14.2 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.15.0 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.15.0.rc2 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.15.0.rc1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.14.1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.14.0 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.14.0.rc3 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.14.0.rc2 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.14.0.rc1.1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.14.0.rc1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.13.1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.13.0 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.12.1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.13.0.rc1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.12.0 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.12.0.rc3 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.12.0.rc2 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.12.0.rc1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.11.1 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb
katello-4.11.0 app/lib/katello/validators/content_default_http_proxy_setting_validator.rb