karmi/tire — pull request #218 by GearHead90 (2012-01-30 07:33:14+00:00)
Title: ActiveRecord Single Table Inheritance search bug

When I need to make a search on STI ancestor (to get mixed results from all descendants) on one index (like in tests), I was usually getting error, because it makes 'find' from wrong class. Well, you can see it in tests.

Also it repaires one more bug: when you have two STI classes with separate indexes (like in default) and try to make a search like Tire.search('first_table_index,second_table_index', :load => true) { ... }, it also raises RecordNotFound.