diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-22 10:36:46 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-22 10:38:03 -0200 |
commit | 16e0c8816c4c8a9fb5292278bf5753b026c1105c (patch) | |
tree | 7c3a9a7a1f4a8c7aec4c8678224f608c43e4a442 /actionpack | |
parent | 2d9c4017dd294e336e0245251f67bf490370305d (diff) | |
download | rails-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.rb | 2 |
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 |