From 973c60babd4623093f63690eb8a1f55afab904aa Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 29 Dec 2021 11:25:47 +0000 Subject: [PATCH] Disable some incompatible defaults Using `config.load_defaults` applies a large number of recommended config options, but some of them introduce breaking changes. By selectively disabling the ones that don't work nicely with OFN we can still get the benefits of all the other enabled options. These options currently don't play nicely with OFN, and break the CI build in various places. --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 4f132b749f..fc7a76e47a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -220,6 +220,9 @@ module Openfoodnetwork # include the defaults from previous versions. For more info see: # https://guides.rubyonrails.org/configuring.html#results-of-config-load-defaults config.load_defaults 5.2 + config.action_view.form_with_generates_remote_forms = false + config.active_record.belongs_to_required_by_default = false + config.active_record.cache_versioning = false config.active_support.escape_html_entities_in_json = true