Get the timestamp outside the transactionso everything can see it.
authorTom Hughes <tom@compton.nu>
Sat, 1 Sep 2007 06:48:59 +0000 (06:48 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 1 Sep 2007 06:48:59 +0000 (06:48 +0000)
app/models/way.rb

index 8474bcb..c651192 100644 (file)
@@ -143,8 +143,9 @@ class Way < ActiveRecord::Base
   end
 
   def save_with_history!
+    t = Time.now
+
     Way.transaction do
-      t = Time.now
       self.timestamp = t
       self.save!
     end