Sha256: 2741e176c56223aec5c5b8219c167d589a6fbc3f46c5752e61fb3e7766c6ec5f
Contents?: true
Size: 373 Bytes
Versions: 250
Compression:
Stored size: 373 Bytes
Contents
module Katello module Validators class NonLibraryEnvironmentValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) return unless value record.errors[attribute] << N_("Cannot register a system to the '%s' environment") % "Library" if !record.environment.nil? && record.environment.library? end end end end
Version data entries
250 entries across 250 versions & 1 rubygems