rfs / validates_cpf_cnpj

CPF and CNPJ validations for ActiveModel and Rails
35 stars 21 forks source link

Improvements and Corrections: separated validations for CPF and CNPJ, added dependencies, updated tests to Rspec3, make validation keep original value, value normalization after validation & some bug fixes. #9

Open MauricioMoraes opened 8 years ago

MauricioMoraes commented 8 years ago

The CPNJ 00.000.000/0000-00 was been considered valid. Now the CNPJ fields are invalid when there are 14 or more repeated chars: (00...0, 11...1, ..., 99..9).

MauricioMoraes commented 8 years ago

Added the missing option :message to the validation.