]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/nodes_controller.rb
Prefer keyword arguments when method has optional boolean arguments
[rails.git] / app / controllers / api / nodes_controller.rb
index 9204d96c0250c1901e0c031de81b6df25c6b9971..62eb76505b6228f4c6530476024e7c8afbdae397 100644 (file)
@@ -19,7 +19,7 @@ module Api
     def create
       assert_method :put
 
-      node = Node.from_xml(request.raw_post, true)
+      node = Node.from_xml(request.raw_post, :create => true)
 
       # Assume that Node.from_xml has thrown an exception if there is an error parsing the xml
       node.create_with_history current_user