]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Fixed up way controller tests for API 0.6.
[rails.git] / app / controllers / way_controller.rb
index e7cf0f7f1cf2c140f76331636fe5355af0553eff..ac017ca6bcf54c98950e80f5b6db678365712091 100644 (file)
@@ -68,7 +68,7 @@ class WayController < ApplicationController
       way = Way.find(params[:id])
       new_way = Way.from_xml(request.raw_post)
       if new_way and new_way.id == way.id
       way = Way.find(params[:id])
       new_way = Way.from_xml(request.raw_post)
       if new_way and new_way.id == way.id
-        way.delete_with_history(@user)
+        way.delete_with_history(new_way, @user)
 
         # if we get here, all is fine, otherwise something will catch below.  
         render :nothing => true
 
         # if we get here, all is fine, otherwise something will catch below.  
         render :nothing => true