search for: ferret_before_upd

Displaying 2 results from an estimated 2 matches for "ferret_before_upd".

2006 Aug 25
7
disabling automatic indexing in acts_as_ferret
I''d like to be able to enable/disable the automatic indexing of documents acts_as_ferret does. Something like MyModel.disable_indexing MyModel.enable_indexing would be perfect. I need this because I do some indexing that requires visiting the parents of the model objects and my import method imports the children first, so the information isn''t there yet. I''d like to
2006 Jul 07
0
acts_as_ferret transactions
...====== --- lib/acts_as_ferret.rb (revision 59) +++ lib/acts_as_ferret.rb (working copy) @@ -496,7 +496,8 @@ module InstanceMethods attr_reader :reindex - @ferret_reindex = true + @ferret_reindex = false + @defer_for_transaction = false def ferret_before_update @ferret_reindex = true @@ -505,9 +506,13 @@ # add to index def ferret_create - logger.debug "ferret_create/update: #{self.class.name} : #{self.id}" - self.class.ferret_index << self.to_doc if @ferret_reindex - @ferret_rein...