Skip to content

InterageASH/validators

Repository files navigation

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

About

Add some ActiveModel/ActiveRecord validators

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages