From d27594603b8ff8379effb9d810d3040692745496 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 24 Oct 2016 16:03:43 +0300 Subject: [PATCH] Disable contact model log in test env #206 --- 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 9612609b8..50e78ef54 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -212,7 +212,7 @@ class Contact < ActiveRecord::Base contact.destroy counter.next - STDOUT << "#{Time.zone.now.utc} Contact.destroy_orphans: ##{contact.id} (#{contact.name})\n" + STDOUT << "#{Time.zone.now.utc} Contact.destroy_orphans: ##{contact.id} (#{contact.name})\n" unless Rails.env.test? end STDOUT << "#{Time.zone.now.utc} - Successfully destroyed #{counter} orphaned contacts\n" unless Rails.env.test?