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

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