From 1a2b6c9044b03e7fc77a7ca1b94f7391ddeb8846 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Mon, 30 Nov 2015 21:34:47 +0200 Subject: [PATCH] Contact should always have OK state --- lib/tasks/import.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake index e1e144673..2484bc5af 100644 --- a/lib/tasks/import.rake +++ b/lib/tasks/import.rake @@ -277,7 +277,7 @@ namespace :import do x.postalcode.try(:strip), x.stateorprovince.try(:strip), x.country.try(:strip), - [x.object_state.try(:name)|| Contact::OK] + [x.object_state.try(:name), Contact::OK].compact ] if contacts.size % 10000 == 0