Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
Lessons:18Length:3.2 hours
  • Overview
  • Transcript

3.4 Callbacks

As if it were not enough, ActiveRecord has a set of hooks at your disposal. You can attach callbacks to these special triggers that will go off upon the eminence of creating, updating or deleting records as well as right after those records are persisted in those three ways. We’ll be persisting a timeline activity that will be filled with records on when issues are created. We’ll also learn how to trim whitespace between tags just before hitting the database.