I'm working on a Ruby Sinatra app with Active Record and it gets this error message printed in the console with every HTTP call.
I couldn't find anywhere more information about this deprecation or how to fix it.
DEPRECATION WARNING: Calling `ActiveRecord::Base.clear_active_connections! is deprecated. Please call the method directly on the connection handler; for example: `ActiveRecord::Base.connection_handler.clear_active_connections!`. (called from clear_active_connections! at /Users/user/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activerecord-7.1.1/lib/active_record/connection_handling.rb:320)
Solved. Just needed to update the gem