Correctly record which user deleted an object.
This commit is contained in:
parent
bb4b682d0b
commit
0c198107af
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue