Create an activity with no trackable

32 views
Skip to first unread message

Brendon Muir

unread,
Jul 16, 2018, 11:03:36 PM7/16/18
to Public Activity
Hi there, I'm wanting to create an activity when a collection action happens. In my example, the action is drop which deleted all the records from a particular table. I've come up with the following:

PublicActivity::Activity.create key: 'activities.drop', owner: current_user

Is that the best way to go about this when there is no trackable?

Cheers,

Brendon


Reply all
Reply to author
Forward
0 new messages