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.7.3 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.7.2 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.7.1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.6.2.1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.6.2 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.7.0 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.6.1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.7.0.rc2 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.7.0.rc1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.4.2.2 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.4.2.1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.4.2 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.5.1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.6.0 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.6.0.rc2 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.6.0.rc1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.5.0 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.5.0.rc2 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.4.1 app/lib/katello/validators/content_view_filter_version_validator.rb
katello-4.5.0.rc1 app/lib/katello/validators/content_view_filter_version_validator.rb