1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/lib
ItaiLeibowitz 245e835ca5 Use updated_at timestamp for "create" versions
"Create" versions currently use the item's created_at field to set the version's timestamp. 

This is wrong in the case where the item was created at some point in the past, then deleted, then is now being created again (e.g., through reification). The version gets the timestamp from the original creation.

Instead, this change uses the item's updated_at field which is the time of the re-creation. This is also consistent with what happens in "update" versions
2015-08-11 12:58:03 -04:00
..
generators/paper_trail In MySQL, use longtext instead of text 2015-06-22 18:33:52 -04:00
paper_trail Use updated_at timestamp for "create" versions 2015-08-11 12:58:03 -04:00
paper_trail.rb Format comments 2015-08-03 16:45:42 -04:00