Hi!

I think I've found a STI bug in TS. The problem resides in the method
sphinx_document_id that is mainly use by delta methods.
When calculating the sphinx_document_id, TS uses
ThinkingSphinx.indexed_models that only contains the models that have
an index (and does not contains the childs). When trying to calculate
the index from the name of a STI model it fails with "TypeError: nil
can't be coerced into Fixnum" because the child model name is not in
the array...

For now I've changed the method to find the index from
self.class.base_class.name instead of self.class.name.
Don't know if that is the best solution and if it does not create
duplicate ids, but it seems to work for me.

Nicolas.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to