From 83f1e9039bc701b3ffd16e2e37848cd83cdd2268 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 25 Mar 2020 17:50:57 +0100 Subject: [PATCH] revert new_framwork_defaults --- config/initializers/new_framework_defaults.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/initializers/new_framework_defaults.rb b/config/initializers/new_framework_defaults.rb index 61448a3c4..9fa84bbea 100644 --- a/config/initializers/new_framework_defaults.rb +++ b/config/initializers/new_framework_defaults.rb @@ -8,6 +8,9 @@ # # Read the Guide for Upgrading Ruby on Rails for more info on each option. +# DEPRECATION WARNING: raise_on_unfiltered_parameters is deprecated and has no effect in Rails 5.1. +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + # Enable per-form CSRF tokens. Previous versions had false. Rails.application.config.action_controller.per_form_csrf_tokens = false @@ -20,3 +23,7 @@ ActiveSupport.to_time_preserves_timezone = false # Require `belongs_to` associations by default. Previous versions had false. Rails.application.config.active_record.belongs_to_required_by_default = false + +# DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is deprecated and will be removed in Rails 5.2. +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = true