Run after_commit callbacks in order defined
This change doesn't affect us, since we don't use `after_commit` callbacks, and, among our dependencies, AFAIK only the Devise gem uses them, and it only defines one after_commit callback when creating a record and another one when updating it, so we're never going to have more than one callback being executed after a transaction is finished.
This commit is contained in:
@@ -204,7 +204,7 @@ Rails.application.config.active_record.marshalling_format_version = 7.1
|
||||
# This matches the behaviour of all other callbacks.
|
||||
# In previous versions of Rails, they ran in the inverse order.
|
||||
#++
|
||||
# Rails.application.config.active_record.run_after_transaction_callbacks_in_order_defined = true
|
||||
Rails.application.config.active_record.run_after_transaction_callbacks_in_order_defined = true
|
||||
|
||||
###
|
||||
# Whether a `transaction` block is committed or rolled back when exited via `return`, `break` or `throw`.
|
||||
|
||||
Reference in New Issue
Block a user