pat/thinking-sphinx — pull request #395 by kenn (2012-11-19 03:32:32+00:00)
Title: Fix ThinkingSphinx::Context#load_models to work again with Rails 3.2.9

When subdirectories exist in the model directory (e.g. STI models), we should look for non-namespaced class constants as well (in case we have`config.autoload_paths += Dir["#{Rails.root}/app/models/**/"]`).

Starting with Rails 3.2.9, TS dumps a bunch of warning messages with stack traces upon boot.

Also, more fundamentally, there was a bug in the previous implementation of STI support, and it's been silently disabling models in subdirectories.

This pull request fixes both problems.