public-activity / public_activity

Easy activity tracking for models - similar to Github's Public Activity

Home Page:https://github.com/pokonski/public_activity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conditionally create activity

mabid opened this issue · comments

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 ?

There is:

tracked :on => {:update => proc {|model, controller| model.published? }}

where the keys are crud actions and values are procs