From 7526a2a20445639a4ea11bce16297374d3cfb3b0 Mon Sep 17 00:00:00 2001 From: Owaru Ryudo Date: Mon, 7 Oct 2024 10:49:01 +0800 Subject: [PATCH] Skip the patch for moderm JRuby vers --- .../connection_adapters/oracle_enhanced_adapter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb b/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb index d625d334a..f1490bede 100644 --- a/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb +++ b/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb @@ -801,7 +801,8 @@ module ActiveRecord end # Workaround for https://github.com/jruby/jruby/issues/6267 -if RUBY_ENGINE == "jruby" +# This is for older versions of JRuby and not necessary for moderm JRuby (>9) now +if RUBY_ENGINE == "jruby" && RUBY_VERSION.to_f < 3.0 require "jruby" class org.jruby::RubyObjectSpace::WeakMap