Story#111396470 - show special message on contact ident update (typo fix)

This commit is contained in:
Vladimir Krylov 2016-01-12 14:24:32 +02:00
parent cb6601ce1d
commit a20df5243a

View file

@ -238,7 +238,7 @@ class Contact < ActiveRecord::Base
def ident_valid_format?
case ident_country_code
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
when 'priv'.freeze
errors.add(:ident, err_msg) unless Isikukood.new(ident).valid?