|
@@ -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",
|
|
|
},
|
|
|
]
|
|
|
|