mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Story#111396470 - show special message on contact ident update (typo fix)
This commit is contained in:
parent
cb6601ce1d
commit
a20df5243a
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ class Contact < ActiveRecord::Base
|
||||||
def ident_valid_format?
|
def ident_valid_format?
|
||||||
case ident_country_code
|
case ident_country_code
|
||||||
when 'EE'.freeze
|
when 'EE'.freeze
|
||||||
err_msg = "invalid_EE_identity_format#{"__update" if id}".to_sym
|
err_msg = "invalid_EE_identity_format#{"_update" if id}".to_sym
|
||||||
case ident_type
|
case ident_type
|
||||||
when 'priv'.freeze
|
when 'priv'.freeze
|
||||||
errors.add(:ident, err_msg) unless Isikukood.new(ident).valid?
|
errors.add(:ident, err_msg) unless Isikukood.new(ident).valid?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue