summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/assets_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb
index fbede0a7..8df4c94d 100644
--- a/app/controllers/assets_controller.rb
+++ b/app/controllers/assets_controller.rb
@@ -81,7 +81,7 @@ class AssetsController < ApplicationController
81 # DELETE /assets/1.xml 81 # DELETE /assets/1.xml
82 def destroy 82 def destroy
83 @asset = Asset.find(params[:id]) 83 @asset = Asset.find(params[:id])
84 @asset.destroy 84 @asset.destroy_witnessed!(:user => current_user)
85 85
86 respond_to do |format| 86 respond_to do |format|
87 format.html { redirect_to(assets_url) } 87 format.html { redirect_to(assets_url) }