File tree Expand file tree Collapse file tree 4 files changed +6
-24
lines changed Expand file tree Collapse file tree 4 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ Please refer to the [Changelog][railties] for detailed changes.
30
30
31
31
* Remove deprecated ` Rails.application.secrets ` .
32
32
33
+ * Remove deprecated ` Rails.config.enable_dependency_loading ` .
34
+
33
35
### Deprecations
34
36
35
37
### Notable changes
Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` Rails.config.enable_dependency_loading ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Remove deprecated ` Rails.application.secrets ` .
2
6
3
7
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ def initialize(*)
67
67
@api_only = false
68
68
@debug_exception_response_format = nil
69
69
@x = Custom . new
70
- @enable_dependency_loading = false
71
70
@content_security_policy = nil
72
71
@content_security_policy_report_only = false
73
72
@content_security_policy_nonce_generator = nil
@@ -350,22 +349,6 @@ def enable_reloading=(value)
350
349
self . cache_classes = !value
351
350
end
352
351
353
- ENABLE_DEPENDENCY_LOADING_WARNING = <<~MSG
354
- This flag addressed a limitation of the `classic` autoloader and has no effect nowadays.
355
- To fix this deprecation, please just delete the reference.
356
- MSG
357
- private_constant :ENABLE_DEPENDENCY_LOADING_WARNING
358
-
359
- def enable_dependency_loading
360
- Rails . deprecator . warn ( ENABLE_DEPENDENCY_LOADING_WARNING )
361
- @enable_dependency_loading
362
- end
363
-
364
- def enable_dependency_loading = ( value )
365
- Rails . deprecator . warn ( ENABLE_DEPENDENCY_LOADING_WARNING )
366
- @enable_dependency_loading = value
367
- end
368
-
369
352
def read_encrypted_secrets
370
353
Rails . deprecator . warn ( `config.read_encrypted_secrets is deprecated and will be removed in Rails 7.3.` )
371
354
end
Original file line number Diff line number Diff line change @@ -1452,13 +1452,6 @@ def index
1452
1452
assert_equal false , ActionView ::Resolver . caching?
1453
1453
end
1454
1454
1455
- test "config.enable_dependency_loading is deprecated" do
1456
- app "development"
1457
-
1458
- assert_deprecated ( Rails . deprecator ) { Rails . application . config . enable_dependency_loading }
1459
- assert_deprecated ( Rails . deprecator ) { Rails . application . config . enable_dependency_loading = true }
1460
- end
1461
-
1462
1455
test "ActionController::Base::renderer uses Rails.application.default_url_options and config.force_ssl" do
1463
1456
add_to_config <<~RUBY
1464
1457
config.force_ssl = true
You can’t perform that action at this time.
0 commit comments