Sha256: aa9b7f720edb00b110ea8f0c10ae93ed6686abf497d265d35a6ed5dbc33c7550
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
# frozen_string_literal: true class ThinkingSphinx::Railtie < Rails::Railtie config.to_prepare do ThinkingSphinx::Configuration.reset end initializer 'thinking_sphinx.initialisation' do ActiveSupport.on_load(:active_record) do ActiveRecord::Base.include ThinkingSphinx::ActiveRecord::Base end if ActiveSupport::VERSION::MAJOR > 5 if Rails.application.config.autoloader == :zeitwerk ActiveSupport::Dependencies.autoload_paths.delete( Rails.root.join("app", "indices").to_s ) end end end rake_tasks do load File.expand_path('../tasks.rb', __FILE__) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-5.1.0 | lib/thinking_sphinx/railtie.rb |
thinking-sphinx-5.0.0 | lib/thinking_sphinx/railtie.rb |