]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/ways_controller.rb
Improve guessing of labels for Nominatim results
[rails.git] / app / controllers / api / ways_controller.rb
index a0feabff3a82a504b9a31f5dfd397601e99d8e27..f88f3a1d011d7609c0c0eb8a3704ee2c31746fe1 100644 (file)
@@ -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