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