aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorTejas Bubane <tejasbubane@gmail.com>2017-03-04 21:23:14 +0530
committerTejas Bubane <tejasbubane@gmail.com>2017-03-04 21:30:18 +0530
commit609bf1ac8fdce4eb245578575da5f95be4424511 (patch)
tree97f68c4104bb3c5e6e495c0ff6c11bdbb1dcd83e /actionpack/lib
parent145adda5815e910df09af107e9ff97467799e853 (diff)
downloadrails-609bf1ac8fdce4eb245578575da5f95be4424511.tar.gz
rails-609bf1ac8fdce4eb245578575da5f95be4424511.tar.bz2
rails-609bf1ac8fdce4eb245578575da5f95be4424511.zip
[ci skip] Fix ParameterMissing exception name in docs
Should be `ActionController::ParameterMissing` and not `ActionController::MissingParameter`. Corresponding change was done in guides in https://github.com/rails/rails/pull/9816.
Diffstat (limited to 'actionpack/lib')
-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 d304dcf468..3b293baa73 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -862,7 +862,7 @@ module ActionController
# end
#
# # This will pass with flying colors as long as there's a person key in the
- # # parameters, otherwise it'll raise an ActionController::MissingParameter
+ # # parameters, otherwise it'll raise an ActionController::ParameterMissing
# # exception, which will get caught by ActionController::Base and turned
# # into a 400 Bad Request reply.
# def update