mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Added ident country code error #2590
This commit is contained in:
parent
f5feba0509
commit
4448284680
5 changed files with 24 additions and 5 deletions
|
@ -181,7 +181,7 @@ class Contact < ActiveRecord::Base
|
|||
if code
|
||||
self.ident_country_code = code.alpha2
|
||||
else
|
||||
errors.add(:ident_country_code, 'is not following ISO_3166-1 alpha 2 format')
|
||||
errors.add(:ident, :invalid_country_code)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue