Skip to content

Commit 68e2492

Browse files
authored
fix: Gem version check (#483)
1 parent b377b99 commit 68e2492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphiti/adapters/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def destroy(model_instance)
304304
end
305305

306306
def close
307-
if ::ActiveRecord.version > "7.2"
307+
if ::ActiveRecord.version > Gem::Version.new("7.2")
308308
::ActiveRecord::Base.connection_handler.clear_active_connections!
309309
else
310310
::ActiveRecord::Base.clear_active_connections!

0 commit comments

Comments
 (0)