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