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