Reduced debugging info.

This commit is contained in:
Martin Edenhofer 2012-11-07 15:59:06 +01:00
parent e349ab8e48
commit 40aa2aa25a

View file

@ -3,8 +3,8 @@ class HistoryObserver < ActiveRecord::Observer
observe :ticket, :user, 'ticket::_article' observe :ticket, :user, 'ticket::_article'
def after_create(record) def after_create(record)
puts 'HISTORY OBSERVER CREATE !!!!' + record.class.name puts 'HISTORY OBSERVER, object created !!!!' + record.class.name
puts record.inspect # puts record.inspect
related_o_id = nil related_o_id = nil
related_history_object_id = nil related_history_object_id = nil
if record.class.name == 'Ticket::Article' if record.class.name == 'Ticket::Article'
@ -30,7 +30,7 @@ class HistoryObserver < ActiveRecord::Observer
return return
end end
puts 'HISTORY OBSERVER UPDATE!!!!' + record.class.name puts 'HISTORY OBSERVER object will be updated!!!!' + record.class.name
# puts 'current' # puts 'current'
# puts current.inspect # puts current.inspect
# puts 'record' # puts 'record'
@ -39,10 +39,8 @@ class HistoryObserver < ActiveRecord::Observer
diff = differences_from?(current, record) diff = differences_from?(current, record)
puts 'DIFF' puts 'DIFF'
puts diff.inspect puts diff.inspect
puts 'CURRENT O_ID' puts 'CURRENT O_ID ' + current.id.to_s
puts current.id puts 'CURRENT USER ID ' + current_user_id.to_s
puts 'CURRENT USER ID'
puts current_user_id
map = { map = {
:group_id => { :group_id => {