close 394

This commit is contained in:
Steve Coast 2007-04-07 13:08:46 +00:00
parent f42111e202
commit f1189ae115
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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