close 394
This commit is contained in:
parent
f42111e202
commit
f1189ae115
2 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,7 @@ class Node < ActiveRecord::Base
|
|||
def save_with_history
|
||||
begin
|
||||
Node.transaction do
|
||||
self.timestamp = Time.now
|
||||
self.save
|
||||
old_node = OldNode.from_node(self)
|
||||
old_node.save
|
||||
|
|
|
@ -56,6 +56,7 @@ class Segment < ActiveRecord::Base
|
|||
def save_with_history
|
||||
begin
|
||||
Segment.transaction do
|
||||
self.timestamp = Time.now
|
||||
self.save
|
||||
old_segment = OldSegment.from_segment(self)
|
||||
old_segment.save
|
||||
|
|
Loading…
Add table
Reference in a new issue