From 4a845aae297a898b50c87f7e022bf33e6dfb4961 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 7 Nov 2012 14:26:43 +0100 Subject: [PATCH] Removed debug info. --- app/models/history_observer.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/history_observer.rb b/app/models/history_observer.rb index 28448e3cd..78c127993 100644 --- a/app/models/history_observer.rb +++ b/app/models/history_observer.rb @@ -31,10 +31,10 @@ class HistoryObserver < ActiveRecord::Observer end puts 'HISTORY OBSERVER UPDATE!!!!' + record.class.name - puts 'current' - puts current.inspect - puts 'record' - puts record.inspect +# puts 'current' +# puts current.inspect +# puts 'record' +# puts record.inspect diff = differences_from?(current, record) puts 'DIFF' @@ -117,7 +117,7 @@ class HistoryObserver < ActiveRecord::Observer if attribute_name.scan(/^(.*)_id$/).first attribute_name = attribute_name.scan(/^(.*)_id$/).first.first end -puts 'LLLLLLLLLLLLLLLLLLLLLLLL' + attribute_name.to_s +#puts 'LLLLLLLLLLLLLLLLLLLLLLLL' + attribute_name.to_s # puts '9999999' # puts current.id History.history_create(