X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e89742928ddccbe127955f94be4be61e13f1faed..0bbdadd727a37ee71d4a8c89b50ce2060d6a6240:/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