The aim of this gem is to provide goodies for developers that are dealing with typical italian business problem with rails 3+.
Add this line to your application's Gemfile:
gem 'italian_job', '~> 1.0'
And then execute:
$ bundle
class MyClass < ActiveRecord::Base
validates :my_attribute, presence: true, codice_fiscale_format: true
end
-
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.
- update specs
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.