On Thu, Feb 01, 2007 at 02:54:41PM +0100, Mark wrote: > Jens Kraemer wrote: > > >> if @blog.blog_comments << comment > >> do_something > > > > adding > > @blog.ferret_update > > here should do the trick. > > > >> else > >> do_something > >> end > > Jens, that's one option I had considered. What do you think about > creating an onsave event in all the models that use acts_as_ferret like > so.. > > after_save :update_ferret_index > > def update_ferret_index > self.blog.ferret_update if self.blog > end
yeah, this should work, too. Even prettier from an architectural point of view :-) Jens -- webit! Gesellschaft für neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED] Schnorrstraße 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66 _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

