lib/thinking_sphinx/railtie.rb in thinking-sphinx-2.0.3 vs lib/thinking_sphinx/railtie.rb in thinking-sphinx-2.0.4
- old
+ new
@@ -1,9 +1,13 @@
require 'thinking_sphinx'
require 'rails'
module ThinkingSphinx
class Railtie < Rails::Railtie
+
+ initializer 'thinking_sphinx.sphinx' do
+ ThinkingSphinx::AutoVersion.detect
+ end
initializer "thinking_sphinx.active_record" do
ActiveSupport.on_load :active_record do
include ThinkingSphinx::ActiveRecord
end