mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user