X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/77f9aec772eb4bb1a413e310dd30a8532dccab5c..3b1ef97c69a3279324fd07a6c49d8bf7ba432282:/app/controllers/api/ways_controller.rb diff --git a/app/controllers/api/ways_controller.rb b/app/controllers/api/ways_controller.rb index a0feabff3..f88f3a1d0 100644 --- a/app/controllers/api/ways_controller.rb +++ b/app/controllers/api/ways_controller.rb @@ -16,7 +16,7 @@ module Api def create assert_method :put - way = Way.from_xml(request.raw_post, true) + way = Way.from_xml(request.raw_post, :create => true) # Assume that Way.from_xml has thrown an exception if there is an error parsing the xml way.create_with_history current_user