Skip to content

Commit

Permalink
Remove monkey patch, ObjectSpace::WeakMap#values was added to JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseChavez committed Jul 25, 2024
1 parent 1383039 commit c77c239
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/arjdbc/abstract/transaction_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,3 @@ def release_savepoint(name = current_savepoint_name)
end
end
end

# patch to avoid the usage of WeakMap
require 'active_record/connection_adapters/abstract/transaction'
module ActiveRecord
module ConnectionAdapters
class Transaction
def add_record(record, ensure_finalize = true)
@records ||= []
@records << record
end
end
end
end

0 comments on commit c77c239

Please sign in to comment.