Sha256: ff4f7f6e93afd795fa553c579fe9e5f8e0f221dd6477f49ef7d1d4015616ef8c
Contents?: true
Size: 507 Bytes
Versions: 248
Compression:
Stored size: 507 Bytes
Contents
module Katello module Validators class ContentViewFilterVersionValidator < ActiveModel::Validator def validate(record) if !record.version.blank? && (!record.min_version.blank? || !record.max_version.blank?) invalid_parameters = _("Invalid filter rule specified, 'version' cannot be specified in the" \ " same tuple as 'min_version' or 'max_version'") record.errors[:base] << invalid_parameters end end end end end
Version data entries
248 entries across 248 versions & 1 rubygems