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.14.2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.15.0 app/lib/katello/validators/not_in_library_validator.rb
katello-4.15.0.rc2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.15.0.rc1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.14.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.14.0 app/lib/katello/validators/not_in_library_validator.rb
katello-4.14.0.rc3 app/lib/katello/validators/not_in_library_validator.rb
katello-4.14.0.rc2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.14.0.rc1.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.14.0.rc1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.13.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.13.0 app/lib/katello/validators/not_in_library_validator.rb
katello-4.12.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.13.0.rc1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.12.0 app/lib/katello/validators/not_in_library_validator.rb
katello-4.12.0.rc3 app/lib/katello/validators/not_in_library_validator.rb
katello-4.12.0.rc2 app/lib/katello/validators/not_in_library_validator.rb
katello-4.12.0.rc1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.11.1 app/lib/katello/validators/not_in_library_validator.rb
katello-4.11.0 app/lib/katello/validators/not_in_library_validator.rb