Skip to content
Browse files

Fix for Rails 2.0.x - Rails.configuration doesn't exist.

  • Loading branch information...
1 parent 4526224 commit c4416e6c7507b8a4b259ea9987f8238371a16c8d @pat pat committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/thinking_sphinx/configuration.rb
View
4 lib/thinking_sphinx/configuration.rb
@@ -158,8 +158,8 @@ def build(file_path=nil)
#
def load_models
return if defined?(Rails) &&
- Rails.configuration.cache_classes &&
- Rails::VERSION::STRING.to_f > 2.1
+ Rails::VERSION::STRING.to_f > 2.1 &&
+ Rails.configuration.cache_classes
self.model_directories.each do |base|
Dir["#{base}**/*.rb"].each do |file|

0 comments on commit c4416e6

Please sign in to comment.
Something went wrong with that request. Please try again.