X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e5834016fd30a975d162478469d030fc168d98fe..396f2e28dd27d514f7882c3918103b12764038de:/app/models/node.rb?ds=sidebyside 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