]> git.openstreetmap.org Git - rails.git/commitdiff
close 394
authorSteve Coast <steve@asklater.com>
Sat, 7 Apr 2007 13:08:46 +0000 (13:08 +0000)
committerSteve Coast <steve@asklater.com>
Sat, 7 Apr 2007 13:08:46 +0000 (13:08 +0000)
app/models/node.rb
app/models/segment.rb

index 0df3689e274b0b13d4a00ad12114eac2c130fe80..1288503b92b3d34ca617b67984c755e03369ee71 100644 (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
index 5c3c65e34ba190fd44769e9de1be211034515610..6a07e8cb1dad8d0f96a25d0331b4f77948c7584c 100644 (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