]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Allow column names in area conditions to be qualified, and do so for
[rails.git] / app / models / way.rb
index c844c1518a4b22f39f1d23a645a8ecbc9d9e9fd6..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
@@ -161,7 +162,7 @@ class Way < ActiveRecord::Base
         tag.id = self.id
         tag.save!
       end
-    done
+    end
 
     WaySegment.transaction do
       segs = self.segs