]> git.openstreetmap.org Git - rails.git/commitdiff
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 8474bcb38b589e6f7132f06ac99f44b8beae8382..c65119235372875d120c28f816e27dd3beb76ac6 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