Sha256: ef078e856f0cb48f0dc000d556a27af5d01d74a2a542951997405be0033b62e4

Contents?: true

Size: 478 Bytes

Versions: 50

Compression:

Stored size: 478 Bytes

Contents

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

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
end

Version data entries

50 entries across 50 versions & 10 rubygems

Version Path
thinking-sphinx-1.4.14 rails/init.rb
thinking-sphinx-1.4.13 rails/init.rb
thinking-sphinx-1.4.12 rails/init.rb
thinking-sphinx-1.4.11 rails/init.rb
thinking-sphinx-1.4.10 rails/init.rb
thinking-sphinx-1.4.9 rails/init.rb
thinking-sphinx-1.4.8 rails/init.rb
thinking-sphinx-1.4.7 rails/init.rb
thinking-sphinx-1.4.6 rails/init.rb
thinking-sphinx-1.4.5 rails/init.rb
thinking-sphinx-1.4.4 rails/init.rb
thinking-sphinx-1.4.3 rails/init.rb
thinking-sphinx-1.4.2 rails/init.rb
thinking-sphinx-1.4.1 rails/init.rb
joshcutler-thinking-sphinx-1.3.18 rails/init.rb
thinking-sphinx-1.4.0 rails/init.rb
thorsson_thinking-sphinx-2.0 rails/init.rb
angelf-thinking-sphinx-1.3.18 rails/init.rb
thinking-sphinx-1.3.20 rails/init.rb
thinking-sphinx-1.3.19 rails/init.rb