]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Some improvements for the XML parsing, as there are somethings that we don't need...
[rails.git] / app / models / relation.rb
index 94ef9d42a8f39552ffe59804b305b86c69e630d7..6be1061591dda7b665b20ceed5b5b81ae79e96d3 100644 (file)
@@ -49,6 +49,8 @@ class Relation < ActiveRecord::Base
     raise OSM::APIBadXMLError.new("relation", pt, "You are missing the required changeset in the relation") if pt['changeset'].nil?
     relation.changeset_id = pt['changeset']
 
     raise OSM::APIBadXMLError.new("relation", pt, "You are missing the required changeset in the relation") if pt['changeset'].nil?
     relation.changeset_id = pt['changeset']
 
+    # The follow block does not need to be executed because they are dealt with 
+    # in create_with_history, update_from and delete_with_history
     if create
       relation.timestamp = Time.now
       relation.visible = true
     if create
       relation.timestamp = Time.now
       relation.visible = true