X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e5834016fd30a975d162478469d030fc168d98fe..c555c912047c8d0d23123093a729aa87ca642aee:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index f8559dca7..f4367e459 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -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