diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-15 17:28:29 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-15 17:28:29 -0800 |
commit | e42b5f99eb04403aa3a850c4f05a609ee6a7846d (patch) | |
tree | 849d3320b5ddba99771580ef49edb93434d867f4 /actionpack/lib/action_dispatch/middleware | |
parent | cfdd5cbbab68cf34c3fc2248822498191376fe6d (diff) | |
parent | 8e221127abf5262183c20e981f7cf1ff4bfe1a4f (diff) | |
download | rails-e42b5f99eb04403aa3a850c4f05a609ee6a7846d.tar.gz rails-e42b5f99eb04403aa3a850c4f05a609ee6a7846d.tar.bz2 rails-e42b5f99eb04403aa3a850c4f05a609ee6a7846d.zip |
Merge pull request #8958 from balexand/strong_parameters_exception_handling
Strong parameters exception handling
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/exception_wrapper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb index 869d0aa7af..7489ce8028 100644 --- a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb +++ b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb @@ -12,7 +12,8 @@ module ActionDispatch 'ActionController::NotImplemented' => :not_implemented, 'ActionController::UnknownFormat' => :not_acceptable, 'ActionController::InvalidAuthenticityToken' => :unprocessable_entity, - 'ActionController::BadRequest' => :bad_request + 'ActionController::BadRequest' => :bad_request, + 'ActionController::ParameterMissing' => :bad_request ) cattr_accessor :rescue_templates |