From 993a00eb3fca627d3c1c2fb84e12c4688cdfc414 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 13 Jun 2013 21:22:46 +0200 Subject: [PATCH] Disabled debug messages. --- app/models/observer/history.rb | 10 +++++----- app/models/observer/ticket/notification.rb | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/observer/history.rb b/app/models/observer/history.rb index 5cdffb7df..c57390e4f 100644 --- a/app/models/observer/history.rb +++ b/app/models/observer/history.rb @@ -49,9 +49,9 @@ class Observer::History < ActiveRecord::Observer # puts record.inspect diff = differences_from?(current, record) - puts ' DIFF' - puts ' ' + diff.inspect - puts ' CURRENT USER ID ' + UserInfo.current_user_id.to_s + #puts ' DIFF' + #puts ' ' + diff.inspect + #puts ' CURRENT USER ID ' + UserInfo.current_user_id.to_s map = { :group_id => { @@ -88,11 +88,11 @@ class Observer::History < ActiveRecord::Observer # do not log created_at and updated_at attributes next if ignore_attributes[key.to_sym] == true - puts " CHANGED: #{key} is #{value_ids.inspect}" + #puts " CHANGED: #{key} is #{value_ids.inspect}" # check if diff are ids, if yes do lookup if value_ids[0].to_s == value_ids[1].to_s - puts 'NEXT!!' + #puts 'NEXT!!' next end diff --git a/app/models/observer/ticket/notification.rb b/app/models/observer/ticket/notification.rb index 8a309bb2f..c2aec9e0e 100644 --- a/app/models/observer/ticket/notification.rb +++ b/app/models/observer/ticket/notification.rb @@ -269,7 +269,7 @@ class Observer::Ticket::Notification < ActiveRecord::Observer # return if we run import mode return if Setting.get('import_mode') - puts 'before_update' + #puts 'before_update' current = record.class.find(record.id) # do not send anything if nothing has changed