Sha256: 81a2c4aee6f3b9ac5406c85f199deb6b21f3e9d795592ecfc863bed43e49d068

Contents?: true

Size: 283 Bytes

Versions: 248

Compression:

Stored size: 283 Bytes

Contents

module Katello
  module Validators
    class NotInLibraryValidator < ActiveModel::Validator
      def validate(record)
        record.errors[:environment] << _("The '%s' environment cannot contain a changeset!") % "Library" if record.environment.library?
      end
    end
  end
end

Version data entries

248 entries across 248 versions & 1 rubygems

Version Path
katello-4.4.0.2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.4.0.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.3.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.4.0 app/lib/katello/validators/not_in_library_validator.rb
katello-4.4.0.rc2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.4.0.rc1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.2.2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.3.0 app/lib/katello/validators/not_in_library_validator.rb
katello-4.3.0.rc4 app/lib/katello/validators/not_in_library_validator.rb
katello-4.3.0.rc3 app/lib/katello/validators/not_in_library_validator.rb
katello-4.3.0.rc2.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.3.0.rc2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.3.0.rc1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.2.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.2.0.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.1.4 app/lib/katello/validators/not_in_library_validator.rb
katello-4.0.3 app/lib/katello/validators/not_in_library_validator.rb
katello-4.2.0.1.rc3 app/lib/katello/validators/not_in_library_validator.rb
katello-3.18.5 app/lib/katello/validators/not_in_library_validator.rb
katello-4.2.0.1.rc2 app/lib/katello/validators/not_in_library_validator.rb