Sha256: 52be59ade819e627069d7bb48463f1bfd2a588fd4f68a37d535559bac850a40b

Contents?: true

Size: 290 Bytes

Versions: 248

Compression:

Stored size: 290 Bytes

Contents

module Katello
  module Validators
    class LibraryPresenceValidator < ActiveModel::EachValidator
      def validate_each(record, attribute, value)
        record.errors[attribute] << N_("must contain '%s'") % "Library" if value.select { |e| e.library }.empty?
      end
    end
  end
end

Version data entries

248 entries across 248 versions & 1 rubygems

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