require 'xml/libxml'
include ConsistencyValidations
+ include NotRedactable
- set_table_name 'current_ways'
+ self.table_name = "current_ways"
belongs_to :changeset
# and manually set to false before the actual delete.
way.visible = true
+ # Start with no tags
+ way.tags = Hash.new
+
+ # Add in any tags from the XML
pt.find('tag').each do |tag|
raise OSM::APIBadXMLError.new("way", pt, "tag is missing key") if tag['k'].nil?
raise OSM::APIBadXMLError.new("way", pt, "tag is missing value") if tag['v'].nil?