Skip to content

Commit 4e764f6

Browse files
authored
fix: update version check for clear active connections active record deprecation (#491)
1 parent d643a6e commit 4e764f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphiti/adapters/active_record.rb

+1-1
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 > Gem::Version.new("7.2")
307+
if ::ActiveRecord.version > Gem::Version.new("7.1")
308308
::ActiveRecord::Base.connection_handler.clear_active_connections!
309309
else
310310
::ActiveRecord::Base.clear_active_connections!

0 commit comments

Comments
 (0)