Skip to content

Commit

Permalink
Fix deprecation warning in Rails 7.1 (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie committed Jan 26, 2024
1 parent a49ea7b commit 894314a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scout_apm/app_server_load.rb
Expand Up @@ -51,7 +51,7 @@ def data
ensure
# Sometimes :database_engine and :database_adapter can cause a reference to an AR connection.
# Make sure we release all AR connections held by this thread.
ActiveRecord::Base.clear_active_connections! if Utils::KlassHelper.defined?("ActiveRecord::Base")
ActiveRecord::Base.connection_handler.clear_active_connections! if Utils::KlassHelper.defined?("ActiveRecord::Base")
end

# Calls `.to_s` on the object passed in.
Expand Down

0 comments on commit 894314a

Please sign in to comment.