Skip to content

Commit

Permalink
Update lib/yabeda/active_record.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Novikov <[email protected]>
  • Loading branch information
intrip and Envek authored Dec 12, 2023
1 parent 41b40d8 commit 544c6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yabeda/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 544c6db

Please sign in to comment.