My Task model has commit callbacks that send notifications. But the task model ALSO gets touched by a bunch of associated/child records, and these really shouldn’t be sending notifications for each one.
I’ve decided to write a simple touch_without_callbacks method that helped me acheive this.
How to touch rails columns without callbacks
create an initializer called touch_without_callbacks.rb
So now in your rails code, you can do something like this: