|
|
@ -134,7 +134,7 @@ class HacksController < ApplicationController
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
base_attrs = {
|
|
|
|
base_attrs = {
|
|
|
|
user_id: @hack.user_id, viewed: 0, tiding_type: 'System', trigger_user_id: current_user.id,
|
|
|
|
user_id: @hack.user_id, viewed: 0, tiding_type: 'System', trigger_user_id: current_user.id,
|
|
|
|
parent_container_type: "HackDelete"
|
|
|
|
parent_container_type: "HackDelete", extra: "#{@hack.name}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@hack.tidings.create!(base_attrs)
|
|
|
|
@hack.tidings.create!(base_attrs)
|
|
|
|
@hack.destroy
|
|
|
|
@hack.destroy
|
|
|
|