Skip to content

Commit fe33d2a

Browse files
committed
Use Rails 7.1 defaults except where tests fail
1 parent 9c92e62 commit fe33d2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/application.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class Application < Rails::Application
112112

113113
# FYI, this is where load_defaults is defined as of 7.2:
114114
# https://github.com/rails/rails/blob/d437ae311f1b9dc40b442e40eb602e020cec4e49/railties/lib/rails/application/configuration.rb#L92
115-
config.load_defaults 7.0
115+
config.load_defaults 7.1
116116

117117
# TODO: this is the only change we had from defaults in 7.0. See secure_headers.rb. It's 0 in defaults.
118118
config.action_dispatch.default_headers["X-XSS-Protection"] = "1; mode=block"
@@ -128,6 +128,10 @@ class Application < Rails::Application
128128
# TODO: We should fix this so we don't need to carry this override.
129129
config.active_record.belongs_to_required_by_default = false
130130

131+
# TODO: Rails 7.1 default overridden to fix loading scanning_operations_mixin, dialog_import_service
132+
# manageiq/providers/infra_manager/template, dialog_field_importer, workers/event_catcher
133+
config.add_autoload_paths_to_load_path = true
134+
131135
# NOTE: If you are going to make changes to autoload_paths, please make
132136
# sure they are all strings. Rails will push these paths into the
133137
# $LOAD_PATH.

0 commit comments

Comments
 (0)