mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Set AC::Parameters.permit_all_parameters explicitly to false when config.action_controller.permit_all_parameters is not present
This commit is contained in:
parent
5dc5560090
commit
9f07782161
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module ActionController
|
|||
end
|
||||
|
||||
initializer "action_controller.parameters_config" do |app|
|
||||
ActionController::Parameters.permit_all_parameters = app.config.action_controller.delete(:permit_all_parameters)
|
||||
ActionController::Parameters.permit_all_parameters = app.config.action_controller.delete(:permit_all_parameters) { false }
|
||||
end
|
||||
|
||||
initializer "action_controller.set_configs" do |app|
|
||||
|
|
Loading…
Reference in a new issue