0.0
No commit activity in last 3 years
No release in over 3 years
Allows validate CUIT and CUIL in Ruby applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Usage

Add to your Gemfile:

gem 'cuit_validator'

Run:

bundle install

Then add the following to your model:

validates :my_cuit, :cuit => true

Validation outside a model

If you need to validate the cuit outside a model:

Normal mode

CuitValidator.valid?('20-11111111-2') # boolean

Thread safety

This gem is thread safe, with one caveat: CuitValidator.default_options must be configured before use in a multi-threaded environment. If you configure default_options in a Rails initializer file, then you're good to go since initializers are run before worker threads are spawned.