aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-22 10:36:46 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-22 10:38:03 -0200
commit16e0c8816c4c8a9fb5292278bf5753b026c1105c (patch)
tree7c3a9a7a1f4a8c7aec4c8678224f608c43e4a442 /actionpack
parent2d9c4017dd294e336e0245251f67bf490370305d (diff)
downloadrails-16e0c8816c4c8a9fb5292278bf5753b026c1105c.tar.gz
rails-16e0c8816c4c8a9fb5292278bf5753b026c1105c.tar.bz2
rails-16e0c8816c4c8a9fb5292278bf5753b026c1105c.zip
Only check for unpermmited parameters if
action_on_unpermitted_parameters is present
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb
index a78a24622d..d028c7d8c4 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -251,7 +251,7 @@ module ActionController
end
end
- unpermitted_parameters!(params)
+ unpermitted_parameters!(params) if self.class.action_on_unpermitted_parameters
params.permit!
end