lib/thinking_sphinx/railtie.rb in thinking-sphinx-4.4.1 vs lib/thinking_sphinx/railtie.rb in thinking-sphinx-5.0.0
- old
+ new
@@ -5,10 +5,10 @@
ThinkingSphinx::Configuration.reset
end
initializer 'thinking_sphinx.initialisation' do
ActiveSupport.on_load(:active_record) do
- ActiveRecord::Base.send :include, ThinkingSphinx::ActiveRecord::Base
+ ActiveRecord::Base.include ThinkingSphinx::ActiveRecord::Base
end
if ActiveSupport::VERSION::MAJOR > 5
if Rails.application.config.autoloader == :zeitwerk
ActiveSupport::Dependencies.autoload_paths.delete(