Correctly record which user deleted an object.
[rails.git] / app / controllers / way_controller.rb
index e7eead52fe770d223e3a5cb1cc795db0745d6871..dca9241a698e490ba2d497bddbff54a5f880d237 100644 (file)
@@ -87,6 +87,7 @@ class WayController < ApplicationController
 
     when :delete
       if way.visible
+        way.user_id = @user.id
         way.visible = false
         way.save_with_history
         render :nothing => true