]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/changesets_controller.rb
Prefer keyword arguments when method has optional boolean arguments
[rails.git] / app / controllers / api / changesets_controller.rb
index a5a37b485868f8e986053cd723b17e0b671f5710..a236083db2813f09bab39b03bd7b7eb0ba629172 100644 (file)
@@ -21,7 +21,7 @@ module Api
     def create
       assert_method :put
 
-      cs = Changeset.from_xml(request.raw_post, true)
+      cs = Changeset.from_xml(request.raw_post, :create => true)
 
       # Assume that Changeset.from_xml has thrown an exception if there is an error parsing the xml
       cs.user = current_user