You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ruby 3 changed how hash arguments are handled in methods that use a splat for optional arguments.
This caused a bug with the overridden ActiveRecord::Base.transaction method because the original method has signature: def transaction(**options, &block) but the aliased method has def transaction_with_retry(*objects, &block)
Ruby 3 changed how hash arguments are handled in methods that use a splat for optional arguments.
This caused a bug with the overridden
ActiveRecord::Base.transaction
method because the original method has signature:def transaction(**options, &block)
but the aliased method hasdef transaction_with_retry(*objects, &block)
https://github.com/rails/rails/blob/6-0-stable/activerecord/lib/active_record/transactions.rb#L211`
https://github.com/qertoip/transaction_retry/blob/master/lib/transaction_retry/active_record/base.rb#L19
The error thrown appears as:
Since this library appears unmaintained, I've fixed the bug and forked for my teams use as
openstax_transaction_retry
here: https://github.com/openstax/transaction_retry The commit to fix was openstax@9184c88The text was updated successfully, but these errors were encountered: