From: Tom Hughes Date: Fri, 27 Oct 2023 16:42:23 +0000 (+0100) Subject: Commit transactions exited by return, break or throw X-Git-Tag: live~981^2~5 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/4c6a56d002964c0f177f66b135a9adc9a3e7dd05?hp=ed279071c7db4e03eb04b731d2dd6537efe6e9db Commit transactions exited by return, break or throw --- diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index 8ff1fa9ad..25af2fbf8 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -170,7 +170,7 @@ Rails.application.config.active_record.run_after_transaction_callbacks_in_order_ # Whether a `transaction` block is committed or rolled back when exited via `return`, `break` or `throw`. # -# Rails.application.config.active_record.commit_transaction_on_non_local_return = true +Rails.application.config.active_record.commit_transaction_on_non_local_return = true # Controls when to generate a value for has_secure_token declarations. #