This method is only available on newer versions. The first available version (v7.2.3) is shown here.
open?()
Returns true if the transaction exists and isn’t finalized yet.
# File activerecord/lib/active_record/transaction.rb, line 112 def open? !closed? end