[Rails] Active Record Callbacks
John Wilger
johnwilger at gmail.com
Mon Dec 6 14:04:17 GMT 2004
Try 'after_initialize'. Hope that helps.
On Sun, 5 Dec 2004 20:39:46 -0500, Lon Baker <lon at speedymac.com> wrote:
> 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
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Regards,
John Wilger
-----------
Alice came to a fork in the road. "Which road do I take?" she asked.
"Where do you want to go?" responded the Cheshire cat.
"I don't know," Alice answered.
"Then," said the cat, "it doesn't matter."
- Lewis Carrol, Alice in Wonderland
More information about the Rails
mailing list