From 2b4de9a5c2260498caa586f18999c003e7ebc971 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Mon, 14 Dec 2015 14:07:45 +0200 Subject: [PATCH] Story#109590460 - typo --- 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 1b96b9876..6ac8de163 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -219,7 +219,7 @@ class Contact < ActiveRecord::Base errors.add(:ident, :invalid_EE_identity_format) unless Isikukood.new(ident).valid? when 'org'.freeze last_char = ident.last - if ident.size != 8 || !%(1 8 9).freeze.include?(last_char) || ident !=~/\A[12][0-9]{6}[189]\z/ + if ident.size != 8 || !%w(1 8 9).freeze.include?(last_char) || ident !=~/\A[12][0-9]{6}[189]\z/ errors.add(:ident, :invalid_EE_identity_format) end end