Browse Source

Improved docu.

Martin Edenhofer 11 years ago
parent
commit
66ee4d2cc7
2 changed files with 28 additions and 28 deletions
  1. 14 14
      app/models/application_model/history_log_base.rb
  2. 14 14
      app/models/ticket/history_log.rb

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

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