From 7d1decbc87f1614664e1cf78e1271186174b21cb Mon Sep 17 00:00:00 2001 From: Stas Date: Tue, 24 May 2016 17:25:16 +0300 Subject: [PATCH] 111601356-extra_msg --- app/models/contact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/contact.rb b/app/models/contact.rb index d6d5369dd..edc7bedd3 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -33,7 +33,7 @@ class Contact < ActiveRecord::Base uniqueness: { message: :epp_id_taken }, format: { with: /\A[\w\-\:\.\_]*\z/i, message: :invalid }, length: { maximum: 100, message: :too_long_contact_code } - validates :ident_type, inclusion: {in: %w( org priv birthday)} + validates :ident_type, inclusion: {in: %w( org priv birthday), message: :invalid} validate :val_ident_valid_format? validate :uniq_statuses? validate :validate_html