chromesetting
daiao 5 years ago
parent 5841481a59
commit 3528f3764e

@ -131,12 +131,12 @@ class HacksController < ApplicationController
def new;end
def destroy
@hack.destroy
base_attrs = {
user_id: 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"
}
@hack.tidings.create!(base_attrs)
@hack.destroy
render_ok
end

Loading…
Cancel
Save