Interage::Validators
Installation
Add this line to your application's Gemfile:
gem 'interage-validators', '~> 0.1.0'
And then execute:
bundle install
Or install it yourself as:
gem install interage-validators
Usage
# app/models/user.rb
class User < ApplicationRecord
validates :document, cpf: true
end