Correctly record which user deleted an object.

This commit is contained in:
Tom Hughes 2007-06-22 15:37:57 +00:00
parent bb4b682d0b
commit 0c198107af
3 changed files with 3 additions and 0 deletions

View 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