Skip to content
Snippets Groups Projects
Commit c0202177 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Added name to trackable params when in destroy activity

parent 54eb410d
No related branches found
No related tags found
No related merge requests found
...@@ -23,15 +23,17 @@ module Trackable ...@@ -23,15 +23,17 @@ module Trackable
end end
def new_destroy_activity def new_destroy_activity
new_activity(:destroy) params = { name: self.try(:name)}
new_activity(:destroy,params)
end end
def new_activity(action) def new_activity(action,params=nil)
create_activity( create_activity(
action, action,
owner: activity_owner, owner: activity_owner,
recipient: activity_recipient, recipient: activity_recipient,
privacy: activity_privacy privacy: activity_privacy,
parameters: params
) )
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment