Skip to content
Browse files

Set AC::Parameters.permit_all_parameters explicitly to false when con…

…fig.action_controller.permit_all_parameters is not present
  • Loading branch information...
1 parent 5dc5560 commit 9f07782161af3255a929533f81e5efceefe0dc4d @guilleiguaran guilleiguaran committed Sep 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/railtie.rb
View
2 actionpack/lib/action_controller/railtie.rb
@@ -20,7 +20,7 @@ class Railtie < Rails::Railtie #:nodoc:
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|

0 comments on commit 9f07782

Please sign in to comment.
Something went wrong with that request. Please try again.