From d77efec7a042f9be8db1a54937f1e6a6a7b2a7c8 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 20 Jul 2020 17:35:32 +0200 Subject: [PATCH] config: enable active_record.belongs_to_required_by_default --- config/application.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/application.rb b/config/application.rb index 427b10d16..11d738c09 100644 --- a/config/application.rb +++ b/config/application.rb @@ -45,12 +45,6 @@ module TPS default_allowed_tags = ['strong', 'em', 'b', 'i', 'p', 'code', 'pre', 'tt', 'samp', 'kbd', 'var', 'sub', 'sup', 'dfn', 'cite', 'big', 'small', 'address', 'hr', 'br', 'div', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'dl', 'dt', 'dd', 'abbr', 'acronym', 'a', 'img', 'blockquote', 'del', 'ins'] config.action_view.sanitized_allowed_tags = default_allowed_tags + ['u'] - # Since Rails 5.0, this option is enabled by default. - # However we keep it disabled for now, because many of our specs and fatories - # do not build the required associations properly. - # TODO: fix the specs, and enable this option. - config.active_record.belongs_to_required_by_default = false - # Some mobile browsers have a behaviour where, although they will delete the session # cookie when the browser shutdowns, they will still serve a cached version # of the page on relaunch.