From 544c6db68e89eddc8a3d007e72cfd19e83ed14ec Mon Sep 17 00:00:00 2001 From: Jacopo Beschi Date: Tue, 12 Dec 2023 16:14:58 +0100 Subject: [PATCH] Update lib/yabeda/active_record.rb Co-authored-by: Andrey Novikov --- lib/yabeda/active_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yabeda/active_record.rb b/lib/yabeda/active_record.rb index a5f2325..de57a20 100644 --- a/lib/yabeda/active_record.rb +++ b/lib/yabeda/active_record.rb @@ -72,7 +72,7 @@ class Error < StandardError; end # Connection pool metrics collection collect do connection_pools = \ - if ::ActiveRecord.version >= "7.1" + if ::ActiveRecord.version >= Gem::Version.new("7.1") ::ActiveRecord::Base.connection_handler.connection_pool_list(:all) else ::ActiveRecord::Base.connection_handler.connection_pool_list