We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15ba979 commit 8313e33Copy full SHA for 8313e33
1 file changed
lib/graphiti/adapters/active_record.rb
@@ -304,7 +304,11 @@ def destroy(model_instance)
304
end
305
306
def close
307
- ::ActiveRecord::Base.clear_active_connections!
+ if ::ActiveRecord.version > 7.2
308
+ ::ActiveRecord::Base.connection_handler.clear_active_connections!
309
+ else
310
+ ::ActiveRecord::Base.clear_active_connections!
311
+ end
312
313
314
def can_group?
0 commit comments