Sha256: a49bb929488145c1b39098e605ec5d809dda86da986170483b5a523053ee18d9
Contents?: true
Size: 304 Bytes
Versions: 20
Compression:
Stored size: 304 Bytes
Contents
class EffectiveAddressFullNamePresenceValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) if value.present? && !value.empty? && value.full_name.blank? record.errors[attribute] << "is invalid" value.errors[:full_name] << "can't be blank" end end end
Version data entries
20 entries across 20 versions & 1 rubygems