Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 326 Bytes
require 'thinking_sphinx'
if Rails::VERSION::STRING.to_f < 2.1
ThinkingSphinx::Configuration.instance.load_models
end
if Rails::VERSION::STRING.to_f > 1.2
require 'action_controller/dispatcher'
ActionController::Dispatcher.to_prepare :thinking_sphinx do
ThinkingSphinx::Configuration.instance.load_models
end
end