On Fri, Sep 28, 2007 at 12:10:51PM +0200, Jim Neath wrote:
> Hi guys, I'm using attachment_fu on my site to allow users to upload
> pictrues. Pictures can be set to only allow friends to view them.
> 
> The problem I'm having is ferret is indexing the images along with their
> thumbnails which means I end up with a lot of broken images in the
> search. Also it's indexing images whose privacy is set to 1 (friends
> only).
> 
> How could I go about only indexing the images with no parent_id (main
> image, not it's thumbnails) and privacy set to 0 (viewable by all)?

override the ferret_enabled? instance method in your model class.

Cheers,
Jens


-- 
Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to