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
DrMark-thinking-sphinx-1.2.5 rails/init.rb
DrMark-thinking-sphinx-1.2.6 rails/init.rb
bterlson-thinking-sphinx-1.2.8 rails/init.rb
dpickett-thinking-sphinx-1.1.23 rails/init.rb
ebeigarts-thinking-sphinx-1.1.21 rails/init.rb
ebeigarts-thinking-sphinx-1.1.22 rails/init.rb
ebeigarts-thinking-sphinx-1.2.10 rails/init.rb
factorylabs-thinking-sphinx-1.2.7 rails/init.rb
freelancing-god-thinking-sphinx-1.1.21 rails/init.rb
freelancing-god-thinking-sphinx-1.1.22 rails/init.rb
freelancing-god-thinking-sphinx-1.1.23 rails/init.rb
freelancing-god-thinking-sphinx-1.1.24 rails/init.rb
freelancing-god-thinking-sphinx-1.2.0 rails/init.rb
freelancing-god-thinking-sphinx-1.2.1 rails/init.rb
freelancing-god-thinking-sphinx-1.2.10 rails/init.rb
freelancing-god-thinking-sphinx-1.2.11 rails/init.rb
freelancing-god-thinking-sphinx-1.2.2 rails/init.rb
freelancing-god-thinking-sphinx-1.2.3 rails/init.rb
freelancing-god-thinking-sphinx-1.2.4 rails/init.rb
freelancing-god-thinking-sphinx-1.2.5 rails/init.rb