Reduced debugging info.
This commit is contained in:
parent
e349ab8e48
commit
40aa2aa25a
1 changed files with 5 additions and 7 deletions
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in a new issue