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
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk