This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ValidateSpanishVat | |
module ClassMethods | |
# Implements model level validator for Spanish's VAT number. | |
# Usage: | |
# | |
# Inside a model with a vat field, simply put | |
# | |
# validates_spanish_vat field_name | |
# | |
def validates_spanish_vat(*attr_names) |