]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Rework coordinates to avoid scientific formatting of small numbers. Fixes #1509
[rails.git] / app / models / node.rb
index f8559dca75d74431153342f4c4c987281a5354e8..f4367e45954edf51964b903ce54b733c89f8de0b 100644 (file)
@@ -243,7 +243,7 @@ class Node < ActiveRecord::Base
 
       # Create a NodeTag
       tags = self.tags
 
       # Create a NodeTag
       tags = self.tags
-      NodeTag.delete_all(:node_id => id)
+      NodeTag.where(:node_id => id).delete_all
       tags.each do |k, v|
         tag = NodeTag.new
         tag.node_id = id
       tags.each do |k, v|
         tag = NodeTag.new
         tag.node_id = id