diff options
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_view.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_view.rb b/actionpack/lib/action_dispatch/middleware/debug_view.rb index 0e8af80996..148662a48b 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_view.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_view.rb @@ -58,11 +58,9 @@ module ActionDispatch end def params_valid? - begin - @request.parameters - rescue ActionController::BadRequest - false - end + @request.parameters + rescue ActionController::BadRequest + false end end end |