]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Add padding between the last diary post and the pagination links
[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
-      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