X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e89742928ddccbe127955f94be4be61e13f1faed..4bed9c12a0b5e8302098f1646802ce247abf95ee:/app/controllers/api/relations_controller.rb diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index 28e4a026b..9bb3eb87c 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -16,7 +16,7 @@ module Api def create assert_method :put - relation = Relation.from_xml(request.raw_post, true) + relation = Relation.from_xml(request.raw_post, :create => true) # Assume that Relation.from_xml has thrown an exception if there is an error parsing the xml relation.create_with_history current_user