Hi Erik Can you show us your index definition? Also, does it work if you run update_attributes, as opposed to update_attribute (plural, not singular)?
-- Pat On 07/06/2012, at 4:52 AM, elanderholm wrote: > I'm going to do my best to describe what is going on here with all the > detail I can muster! :) > > First the gist. When I do object.update_attribute...index_delta does > not run. More then that if I do Class.index_delta(self) it can't find > index_delta. It does not respond_to? it. > > If I do object.update_attributes it works fine. It runs the > index_delta after_commit. > > I even went as far as to create my own after commit that looked > something like > > after_commit do > Class.index_delta(self) > end > > and i get a no_method error for the Class if I do update_attribute. > If i do update_attributes it actually ends up rotating the indexes > twice. Once from the thinking_sphinx code and once from my > after_commit. > > I'm using > Rails 3.2 > gem 'thinking-sphinx', '~> 2.0.12' > Sphinx 0.9.9-release (r2117) > > Thanks > Erik > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/thinking-sphinx?hl=en. > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
