Skip to content

Commit

Permalink
Filter parameters details (decidim#11418)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu authored Aug 1, 2023
1 parent fa30cdf commit 83c8d75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions decidim-core/lib/decidim/core/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83c8d75

Please sign in to comment.