Code with Jason cover image

001 - Ben Orenstein, Co-Founder of Tuple

Code with Jason

00:00

How to Use Active Record Callbacks to Save Time

A good use of active record callbacks are things that are simple. Simple don't affect other models and don't have side effects. Side effects is probably the biggest one, so here's a great way to shoot yourself in the foot. So if you're writing an active record callback, try to think to yourself, is this a side effect that could come back to haunt me later? Yeah.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app