]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Remove conditions from delete_all
[rails.git] / app / models / node.rb
index 6346907f1ef88354ee098f1ee8c72c774898b1ad..fb9bdf68b0dd700b27c55b39fe4b4885cbced563 100644 (file)
@@ -243,7 +243,7 @@ class Node < ActiveRecord::Base
 
       # 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