Skip to content

Commit 7f52979

Browse files
committed
Remove unnecessary isolation_level setting from load_defaults 7.0
The default value of `ActiveSupport::IsolatedExecutionState.isolation_level` is set to `:thread`, regardless of whether `load_defaults 7.0` is used or not. - https://github.com/rails/rails/blob/v7.0.4/activesupport/lib/active_support/isolated_execution_state.rb If so, there is no need to set this in `load_defaults 7.0`. This Pull Request has been created to remove this unnecessary setting
1 parent 4e01a7e commit 7f52979

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

guides/source/configuring.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ Below are the default values associated with each target version. In cases of co
106106
- [`config.active_support.cache_format_version`](#config-active-support-cache-format-version): `7.0`
107107
- [`config.active_support.executor_around_test_case`](#config-active-support-executor-around-test-case): `true`
108108
- [`config.active_support.hash_digest_class`](#config-active-support-hash-digest-class): `OpenSSL::Digest::SHA256`
109-
- [`config.active_support.isolation_level`](#config-active-support-isolation-level): `:thread`
110109
- [`config.active_support.key_generator_hash_digest_class`](#config-active-support-key-generator-hash-digest-class): `OpenSSL::Digest::SHA256`
111110

112111
#### Default Values for Target Version 6.1

railties/lib/rails/application/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ def load_defaults(target_version)
239239
active_support.key_generator_hash_digest_class = OpenSSL::Digest::SHA256
240240
active_support.cache_format_version = 7.0
241241
active_support.executor_around_test_case = true
242-
active_support.isolation_level = :thread
243242
end
244243

245244
if respond_to?(:action_mailer)

0 commit comments

Comments
 (0)