from_xml sets a version on nodes
[rails.git] / app / models / way.rb
index 255f4329f89983c49f4a760a32df77caeafeb3f9..de69f7565c6493fa27ab466008bd24f78cf62c77 100644 (file)
@@ -31,6 +31,8 @@ class Way < ActiveRecord::Base
     if !create and pt['id'] != '0'
       way.id = pt['id'].to_i
     end
+    
+    way.version = pt['version']
 
     if create
       way.timestamp = Time.now