Skip to content

Commit c77c239

Browse files
committed
Remove monkey patch, ObjectSpace::WeakMap#values was added to JRuby
jruby/jruby#6267
1 parent 1383039 commit c77c239

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/arjdbc/abstract/transaction_support.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,3 @@ def release_savepoint(name = current_savepoint_name)
107107
end
108108
end
109109
end
110-
111-
# patch to avoid the usage of WeakMap
112-
require 'active_record/connection_adapters/abstract/transaction'
113-
module ActiveRecord
114-
module ConnectionAdapters
115-
class Transaction
116-
def add_record(record, ensure_finalize = true)
117-
@records ||= []
118-
@records << record
119-
end
120-
end
121-
end
122-
end

0 commit comments

Comments
 (0)