diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index 27f3cd5a2d5..e579f9fbdb7 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -1,4 +1,4 @@ # frozen_string_literal: true # 7.0 - WOULD BE GREAT TO REMOVE ME -config.action_controller.raise_on_open_redirects = false +Rails.application.config.action_controller.raise_on_open_redirects = false diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index 4e8f74bca09..ac8f5212292 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true # 7.1 - WOULD BE GREAT TO REMOVE ME -config.add_autoload_paths_to_load_path = true -config.active_record.raise_on_assign_to_attr_readonly = false +Rails.application.config.add_autoload_paths_to_load_path = true +Rails.application.config.active_record.raise_on_assign_to_attr_readonly = false