From 68e2492032692d8bb928a733f8b0f8710be31c49 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Tue, 5 Nov 2024 19:10:56 -0500 Subject: [PATCH] fix: Gem version check (#483) --- lib/graphiti/adapters/active_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphiti/adapters/active_record.rb b/lib/graphiti/adapters/active_record.rb index 366ac71a..c474c183 100644 --- a/lib/graphiti/adapters/active_record.rb +++ b/lib/graphiti/adapters/active_record.rb @@ -304,7 +304,7 @@ def destroy(model_instance) end def close - if ::ActiveRecord.version > "7.2" + if ::ActiveRecord.version > Gem::Version.new("7.2") ::ActiveRecord::Base.connection_handler.clear_active_connections! else ::ActiveRecord::Base.clear_active_connections!