Sha256: 715f5df203c539c852db16501d61ec03f6adbdcc9ca3c4f79ea1dc78ce9c4569

Contents?: true

Size: 540 Bytes

Versions: 2

Compression:

Stored size: 540 Bytes

Contents

Dir[File.join(File.dirname(__FILE__), '../vendor/*/lib')].each do |path|
  $LOAD_PATH.unshift path
end

require 'thinking_sphinx/0.9.8'
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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinking-sphinx-1.3.6 rails/init.rb
thinking-sphinx-1.3.4 rails/init.rb