Sha256: b46e88f5467715f0093df96e557d299c5a47dfb094e27363bb2f5405987affe0

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
thinking-sphinx-1.3.3 rails/init.rb