Synapses Group
5 6 7 8
# File 'lib/cpf_cnpj/cpf_validator.rb', line 5 def validate_each(record, attribute, value) return if value.nil? record.errors.add attribute, :invalid unless Cpf.new(value).valid? end