aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-11-13 20:32:30 -0500
committerGitHub <noreply@github.com>2018-11-13 20:32:30 -0500
commit9ef26accd28e3a53a0e9180b2230806480e6144d (patch)
tree28ef681c9007ea082f38bf7f7c07d39e42046883 /actionpack/lib/action_controller/metal
parentdebf35620f3ec06de4eb970600bbd35716984e9d (diff)
parent6b3faf8e502dbd238fe4b4c409e96308638297a1 (diff)
downloadrails-9ef26accd28e3a53a0e9180b2230806480e6144d.tar.gz
rails-9ef26accd28e3a53a0e9180b2230806480e6144d.tar.bz2
rails-9ef26accd28e3a53a0e9180b2230806480e6144d.zip
Merge pull request #34341 from gmcgibbon/parse_error_rescue_2
Allow rescue from parse errors
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/params_wrapper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/params_wrapper.rb b/actionpack/lib/action_controller/metal/params_wrapper.rb
index a678377d4f..7361946de5 100644
--- a/actionpack/lib/action_controller/metal/params_wrapper.rb
+++ b/actionpack/lib/action_controller/metal/params_wrapper.rb
@@ -253,7 +253,10 @@ module ActionController
# This will display the wrapped hash in the log file.
request.filtered_parameters.merge! wrapped_filtered_hash
end
- super
+ ensure
+ # NOTE: Rescues all exceptions so they
+ # may be caught in ActionController::Rescue.
+ return super
end
private