Avoid overusing Active Record callbacks
In one of my recent projects, I came across a model that had a lot of callbacks. Like a dozen of :after_create. It was hard to predict what would happen when a record was created or updated.
Here is an example of a model with many callbacks:
class Co...
tonystrawberry.hashnode.dev4 min read