Summary
Active Record provides hooks (called callbacks) into an object's life cycle so that you can control your application and its data.
1
2
3
Callbacks allow you to trigger logic before or after an alteration of an object's state.
1
2
3
Callbacks are methods that get called at certain moments of an object's life cycle.
1
2
According to
See more results on Neeva
Summaries from the best pages on the web
Active Record Callbacks Callbacks are hooks into the life cycle of an Active Record ... and dependent objects are deleted when ActiveRecord::Base#destroy is ...
ActiveRecord::Callbacks
rubyonrails.org
Summary
Callbacks are methods that get called at certain moments of an object's life cycle. We can use callbacks as a means to manipulate objects further with built-in functionality that Ruby on Rails ships with.
Understanding Active Record Callbacks | Web-Crunch
web-crunch.com
Callbacks are a common way for you to execute code at specific times in the life cycle of an Active Record object, for instance just before it is created, ...
Active Record Callbacks | The Odin Project
theodinproject.com
Active Model Callbacks Provides an interface for any class to have Active Record like callbacks.
ActiveModel::Callbacks
rubyonrails.org