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.
This commit is contained in:
Matt-Yorkley
2021-12-29 11:25:47 +00:00
parent a19335d247
commit 973c60babd

View File

@@ -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