1
0
Fork 0
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:
Guillermo Iguaran 2012-09-19 10:02:54 -05:00
parent 5dc5560090
commit 9f07782161

View file

@ -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|