From 83c8d7547834de72c3ffecb29e460ee0ea923851 Mon Sep 17 00:00:00 2001 From: Alexandru Emil Lupu Date: Tue, 1 Aug 2023 14:32:56 +0300 Subject: [PATCH] Filter parameters details (#11418) --- decidim-core/lib/decidim/core/engine.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/decidim-core/lib/decidim/core/engine.rb b/decidim-core/lib/decidim/core/engine.rb index bcf7b5c4bf4a..14052be0b4f9 100644 --- a/decidim-core/lib/decidim/core/engine.rb +++ b/decidim-core/lib/decidim/core/engine.rb @@ -89,6 +89,10 @@ class Engine < ::Rails::Engine app.config.middleware.use BatchLoader::Middleware end + initializer "decidim_core.param_filtering" do |app| + app.config.filter_parameters += [:document_number, :postal_code, :mobile_phone_number] + end + initializer "decidim_core.default_form_builder" do |_app| ActionView::Base.default_form_builder = Decidim::FormBuilder end