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