25 May '12, 4pm

ActiveSupport::Callbacks:

Callbacks are code hooks that are run at key points in an object’s lifecycle. The typical use case is to have a base class define a set of callbacks relevant to the other functionality it supplies, so that subclasses can install callbacks that enhance or modify the base functionality without needing to override or redefine methods of the base class.

Full article: http://api.rubyonrails.org/classes/ActiveSupport/Callback...

Tweets