]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Remove use of deprecated :comment attribute on link_to and button_to
[rails.git] / app / models / node.rb
index 96d927b2c9144f8e915111990d16ad8834e15da4..0953241d91f2767030f452f5caafac73c193a4ff 100644 (file)
@@ -3,6 +3,7 @@ class Node < ActiveRecord::Base
 
   include GeoRecord
   include ConsistencyValidations
+  include NotRedactable
 
   self.table_name = "current_nodes"
 
@@ -106,6 +107,10 @@ class Node < ActiveRecord::Base
     # and set manually before the actual delete
     node.visible = true
 
+    # Start with no tags
+    node.tags = Hash.new
+
+    # Add in any tags from the XML
     pt.find('tag').each do |tag|
       raise OSM::APIBadXMLError.new("node", pt, "tag is missing key") if tag['k'].nil?
       raise OSM::APIBadXMLError.new("node", pt, "tag is missing value") if tag['v'].nil?