On Mon, Jun 18, 2007 at 02:14:07PM +0200, Andreas Korth wrote:
> 
> On 18.06.2007, at 12:08, Alain Ravet wrote:
> 
> >
> >> I'd like to be able to enable/disable the automatic indexing of
> >
> > I miss this feature badly: I need to disable aaf at the model level,
> > before bulk-modifying the 150K rows of a table, and rebuilding the  
> > index
> > afterwards.
> 
> You can enable/disable AAF on the object level:
> 
> http://projects.jkraemer.net/acts_as_ferret/wiki/ 
> AdvancedUsage#Disablingautomaticindexing
> 
> I don't understand why it's done that way. Disabling indexing on the  
> class level would make a whole lot more sense.

just override the ferret_enabled?(bool) instance method to check for a 
class variable holding your class level disable-flag...


Jens

 

-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to