Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 430 Bytes
require 'thinking_sphinx'
require 'action_controller/dispatcher'
ActionController::Dispatcher.to_prepare :thinking_sphinx do
# Force internationalisation to be loaded.
if Rails::VERSION::STRING.to_f > 2.2
I18n.backend.reload!
I18n.backend.available_locales
elsif Rails::VERSION::STRING.to_f > 2.1
I18n.backend.load_translations(*I18n.load_path)
end
ThinkingSphinx::Configuration.instance.load_models
end
Something went wrong with that request. Please try again.