|
|
@ -56,7 +56,7 @@ class Hack < ApplicationRecord
|
|
|
|
private
|
|
|
|
private
|
|
|
|
def send_delete_tiding
|
|
|
|
def send_delete_tiding
|
|
|
|
base_attrs = {
|
|
|
|
base_attrs = {
|
|
|
|
user_id: user_id, viewed: 0, tiding_type: 'System', trigger_user_id: current_user.id,
|
|
|
|
user_id: user_id, viewed: 0, tiding_type: 'System', trigger_user_id: User.current.id,
|
|
|
|
parent_container_type: "HackDelete"
|
|
|
|
parent_container_type: "HackDelete"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tidings.create!(base_attrs)
|
|
|
|
tidings.create!(base_attrs)
|
|
|
|