X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/67157f69f3b3fb3933207016b2d9566ababf1310..b7335940e21bfe4fc9ac688130687398e677cfae:/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