ActiveModel Validators for dealing with typical italian business problems
Switch branches/tags
Nothing to show
Clone or download
alepore various updates
cleanup gemspec and dependencies, update readme, load translations as rails engine, do not include another presence validator
Latest commit 8addf72 Jun 24, 2015
Permalink
Failed to load latest commit information.
config/locales various updates Jun 24, 2015
lib various updates Jun 24, 2015
spec various updates Jun 24, 2015
.gitignore import code from gem Jun 23, 2015
.rspec various updates Jun 24, 2015
Gemfile import code from gem Jun 23, 2015
LICENSE.txt various updates Jun 24, 2015
README.md various updates Jun 24, 2015
Rakefile import code from gem Jun 23, 2015
italian_job.gemspec various updates Jun 24, 2015

README.md

Italian Job

The aim of this gem is to provide goodies for developers that are dealing with typical italian business problem with rails 3+.

Installation

Add this line to your application's Gemfile:

gem 'italian_job', '~> 1.0'

And then execute:

$ bundle

Usage

class MyClass < ActiveRecord::Base
  validates :my_attribute, presence: true, codice_fiscale_format: true
end

Available Validators

  • codice_fiscale_format: The Italian Tax code is called "Codice Fiscale". For more information see wikipedia.

  • partita_iva_format: The Italian VAT is called "Partita Iva". For more information please see wikipedia.

TODO

  • update specs
  • validate a field as codice fiscale OR partita iva

License

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.