A Couple of Callback Gotchas (And a Rails 5 Fix) ActiveRecord callbacks are an easy way to run code during the different stages of your model’s life. For example, say you have a Q&A site, and you want to be able to search through all the questions. Every time you make a change to a question, you’ll want to index it in something like ElasticSearch. Indexing takes a while and isn’t urgent, so you’ll
![A couple of callback gotchas (and a Rails 5 fix)](https://cdn-ak-scissors.b.st-hatena.com/image/square/faef95303bdef4efff6de8da84fa6c9c3fc35d77/height=288;version=1;width=512/https%3A%2F%2Fwww.justinweiss.com%2Fimages%2Fme-square.jpg)