Validação de Cpf e Cnpj
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
validate_cpf_cnpj.gemspec

README.rdoc

ValidateCpfCnpj

Validação de Cpf e Cnpj

Exemplos

class Person < ActiveRecord::Base
  validates :identification, :cpf_format => true
end

class Company < ActiveRecord::Base
  validates :cnpj, :cnpj_format => true
end

Maintainer