Improved doc and code layout.

This commit is contained in:
Martin Edenhofer 2016-01-26 15:25:32 +01:00
parent a28f29ae3d
commit 5ed4a73d12

View file

@ -22,17 +22,17 @@ class History < ApplicationModel
add a new history entry for an object add a new history entry for an object
History.add( History.add(
:history_type => 'updated', history_type: 'updated',
:history_object => 'Ticket', history_object: 'Ticket',
:history_attribute => 'state', history_attribute: 'state',
:o_id => ticket.id, o_id: ticket.id,
:id_to => 3, id_to: 3,
:id_from => 2, id_from: 2,
:value_from => 'open', value_from: 'open',
:value_to => 'pending reminder', value_to: 'pending reminder',
:created_by_id => 1, created_by_id: 1,
:created_at => '2013-06-04 10:00:00', created_at: '2013-06-04 10:00:00',
:updated_at => '2013-06-04 10:00:00' updated_at: '2013-06-04 10:00:00'
) )
=end =end
@ -143,8 +143,8 @@ return all history entries of an object and it's assets
returns returns
history = { history = {
:list => list, list: list,
:assets => assets, assets: assets,
} }
=end =end