Sha256: dd63e00d6ad1de62ad3c42d21869d4fe231b369aca1226a96b8e4313d18a7563
Contents?: true
Size: 304 Bytes
Versions: 38
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
38 entries across 38 versions & 1 rubygems