Improve contact ident validation

- Make country-specific national id and reg. no validations fully
extendable
- Fix wrong error type for reg. no validator

#569
This commit is contained in:
Artur Beljajev 2017-09-11 17:05:03 +03:00
parent 48ae6cf471
commit 52452f91bf
6 changed files with 103 additions and 34 deletions

View file

@ -12,4 +12,5 @@
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.acronym 'DNS'
inflect.acronym 'ID'
end