Conditionally create activity
mabid opened this issue · comments
Abid Mahmood commented
Is there an option to conditionally create or not create the activity ? something like
tracked unless : Proc.new { ..... }
if not is there another way to only create activity when some conditions are met ?
pokonski commented
There is:
tracked :on => {:update => proc {|model, controller| model.published? }}
where the keys are crud actions and values are procs