Improved doc and code layout.
This commit is contained in:
parent
a28f29ae3d
commit
5ed4a73d12
|
@ -22,17 +22,17 @@ class History < ApplicationModel
|
|||
add a new history entry for an object
|
||||
|
||||
History.add(
|
||||
:history_type => 'updated',
|
||||
:history_object => 'Ticket',
|
||||
:history_attribute => 'state',
|
||||
:o_id => ticket.id,
|
||||
:id_to => 3,
|
||||
:id_from => 2,
|
||||
:value_from => 'open',
|
||||
:value_to => 'pending reminder',
|
||||
:created_by_id => 1,
|
||||
:created_at => '2013-06-04 10:00:00',
|
||||
:updated_at => '2013-06-04 10:00:00'
|
||||
history_type: 'updated',
|
||||
history_object: 'Ticket',
|
||||
history_attribute: 'state',
|
||||
o_id: ticket.id,
|
||||
id_to: 3,
|
||||
id_from: 2,
|
||||
value_from: 'open',
|
||||
value_to: 'pending reminder',
|
||||
created_by_id: 1,
|
||||
created_at: '2013-06-04 10:00:00',
|
||||
updated_at: '2013-06-04 10:00:00'
|
||||
)
|
||||
|
||||
=end
|
||||
|
@ -143,8 +143,8 @@ return all history entries of an object and it's assets
|
|||
returns
|
||||
|
||||
history = {
|
||||
:list => list,
|
||||
:assets => assets,
|
||||
list: list,
|
||||
assets: assets,
|
||||
}
|
||||
|
||||
=end
|
||||
|
|
Loading…
Reference in a new issue