auto-assigning custom fields

30 views
Skip to first unread message

Gyzmo Gato

unread,
May 26, 2020, 10:20:16 AM5/26/20
to Public Activity
Hello,

I am trying to automacally assign custom fields on my activities.
I know you can pass a proc to 'tracked' (eg: { tracked custom_field: proc {|controller, model| controller.some_helper })
but I am only including  PublicActivity::Common to my models since I only create activities manually.
Is there any way to pass a proc to my model?

thank you for your help!
Reply all
Reply to author
Forward
0 new messages