X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/63221710a4b9ce4c282aab751b35581908e45852..582402ba8fe5cb3f7a9934844cf33678a3365f45:/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