diff --git a/app/models/application_model/history_log_base.rb b/app/models/application_model/history_log_base.rb index 4a1a84095..255d1cbde 100644 --- a/app/models/application_model/history_log_base.rb +++ b/app/models/application_model/history_log_base.rb @@ -36,22 +36,22 @@ returns result = [ { - :history_type => 'created', - :history_object => 'Organization', - :created_by_id => 3, - :created_at => "2013-08-19 20:41:33", + :type => 'created', + :object => 'Organization', + :created_by_id => 3, + :created_at => "2013-08-19 20:41:33", }, { - :history_type => 'updated', - :history_object => 'Organization', - :history_attribute => 'note', - :o_id => 1, - :id_to => nil, - :id_from => nil, - :value_from => "some note", - :value_to => "some other note", - :created_by_id => 3, - :created_at => "2013-08-19 20:41:33", + :type => 'updated', + :object => 'Organization', + :attribute => 'note', + :o_id => 1, + :id_to => nil, + :id_from => nil, + :value_from => "some note", + :value_to => "some other note", + :created_by_id => 3, + :created_at => "2013-08-19 20:41:33", }, ] diff --git a/app/models/ticket/history_log.rb b/app/models/ticket/history_log.rb index 39c935c17..5e65833dc 100644 --- a/app/models/ticket/history_log.rb +++ b/app/models/ticket/history_log.rb @@ -37,22 +37,22 @@ returns result = [ { - :history_type => 'created', - :history_object => 'Ticket', - :created_by_id => 3, - :created_at => "2013-08-19 20:41:33", + :type => 'created', + :object => 'Ticket', + :created_by_id => 3, + :created_at => "2013-08-19 20:41:33", }, { - :history_type => 'updated', - :history_object => 'Ticket', - :history_attribute => 'ticket_priority', - :o_id => 1, - :id_to => 3, - :id_from => 2, - :value_from => "low", - :value_to => "high", - :created_by_id => 3, - :created_at => "2013-08-19 20:41:33", + :type => 'updated', + :object => 'Ticket', + :attribute => 'ticket_priority', + :o_id => 1, + :id_to => 3, + :id_from => 2, + :value_from => "low", + :value_to => "high", + :created_by_id => 3, + :created_at => "2013-08-19 20:41:33", }, ]