/italian_job

ActiveModel Validators for dealing with typical italian business problems

Primary LanguageRubyDo What The F*ck You Want To Public LicenseWTFPL

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

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.