[Rails] Active Record Callbacks

Lon Baker lon at speedymac.com
Mon Dec 6 01:39:46 GMT 2004


Is there a callback directly after an object is fetched?

In WebObjects we had numerous opportunities to perform actions on 
database objects when they were fetched or inserted, awakeFromFetch or 
awakeFromInserttion.

I see in the documentation before_create, before_destroy, before_save, 
etc. How would one perform a method after fetching the object but 
before utilizing that object?

--
Thanks.
Lon



More information about the Rails mailing list