X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9527b363da441337ac8c44c9d3d3feada3eaa9c..898beb7b7f693cc21b329dab9a22268e3df77446:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 94ef9d42a..6be106159 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -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'] + # 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