ruby on rails - How do we mimic a ActiveRecord callback for update_all -


http://apidock.com/rails/activerecord/base/update_all/class

how mimic activerecord callback update_all, there way achieve this? docs not possible.

some info why need callbacks when doing 'update_all' helpful. maybe use database triggers that. or, if want reuse existing ruby code , not crucial have immediate effect process updated records background ruby process.


Comments