Sha256: 927849a173ef8b286a4b8aed750671fa2f020d3ba9ef63accec40cdc17660cc5
Contents?: true
Size: 312 Bytes
Versions: 27
Compression:
Stored size: 312 Bytes
Contents
module Renalware module Letters class AuthorSignatureValidator < ActiveModel::Validator def validate(letter) return if letter.death_notification? if letter.author&.signature.blank? errors[:signature] << "Author must have a signature" end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems