Sha256: a8f54ec7d58659065d51fbc87fa8e3459ab381928fc3ee3fbf81e3eeb34950cc
Contents?: true
Size: 450 Bytes
Versions: 16
Compression:
Stored size: 450 Bytes
Contents
module NulogyMessageBusProducer module Subscriptions class ValidForSchemaValidator < ActiveModel::EachValidator def validate_each(record, attribute, _value) return if record.schema_key.blank? || record.query.blank? validator = NulogyMessageBusProducer::Subscriptions::QueryValidator.new validator.validate(record) validator.errors.each { |e| record.errors.add(attribute, e) } end end end end
Version data entries
16 entries across 16 versions & 1 rubygems