Sha256: bed3fc1a9769e344e872392df93a1bd473d2ab161d64a8512f64fb20d3744b94

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

= ValidatesCPF

Rails gem to validate CPF

== Install

gem install validates_cpf

== Usage

Lets say you have a model with "cpf" string column that you want to be a valid CPF. Just add this to your model:

class User < ActiveRecord::Base
    validates :cpf, :cpf => true
end

== Special Thanks

This project is based on brcpfcnpj gem and his intention it to mantain a cleaner code to validate CPF and macros for test it.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
validates_cpf-0.0.1 README.rdoc