Sha256: 1e8533bd32c93ebf15c569c8cd010af9e5feaaa12899995fbfa3db079b9cbe7f

Contents?: true

Size: 430 Bytes

Versions: 45

Compression:

Stored size: 430 Bytes

Contents

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

Version data entries

45 entries across 45 versions & 13 rubygems

Version Path
moneypools-thinking-sphinx-1.2.12 rails/init.rb
moneypools-thinking-sphinx-1.2.11 rails/init.rb
warp-thinking-sphinx-1.2.12 rails/init.rb
thinking-sphinx-099-1.2.12 rails/init.rb
thinking-sphinx-1.2.12 rails/init.rb