diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-26 07:18:40 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-26 07:18:40 +0300 |
commit | edda07b2ce6ab6441ac5ed84e65a86f1fa872f40 (patch) | |
tree | a2e6fb7326680bdede5317496384d6b27457c700 /actionpack/lib/action_controller/metal/params_wrapper.rb | |
parent | 119b9181ece399c67213543fb5227b82688b536f (diff) | |
download | rails-edda07b2ce6ab6441ac5ed84e65a86f1fa872f40.tar.gz rails-edda07b2ce6ab6441ac5ed84e65a86f1fa872f40.tar.bz2 rails-edda07b2ce6ab6441ac5ed84e65a86f1fa872f40.zip |
Fix params_wrapper doc [ci skip]
This feature also works with `PUT`, `PATCH` and `DELETE` requests.
Also developers can add `:url_encoded_form` and `:multipart_form`
into the `:format` for wrapping url encoded or multipart form data.
Diffstat (limited to 'actionpack/lib/action_controller/metal/params_wrapper.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/params_wrapper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/params_wrapper.rb b/actionpack/lib/action_controller/metal/params_wrapper.rb index cdfc523bd4..e680432127 100644 --- a/actionpack/lib/action_controller/metal/params_wrapper.rb +++ b/actionpack/lib/action_controller/metal/params_wrapper.rb @@ -4,8 +4,8 @@ require 'active_support/core_ext/module/anonymous' require 'action_dispatch/http/mime_type' module ActionController - # Wraps the parameters hash into a nested hash. This will allow clients to submit - # POST requests without having to specify any root elements. + # Wraps the parameters hash into a nested hash. This will allow clients to + # submit requests without having to specify any root elements. # # This functionality is enabled in +config/initializers/wrap_parameters.rb+ # and can be customized. @@ -14,7 +14,7 @@ module ActionController # a non-empty array: # # class UsersController < ApplicationController - # wrap_parameters format: [:json, :xml] + # wrap_parameters format: [:json, :xml, :url_encoded_form, :multipart_form] # end # # If you enable +ParamsWrapper+ for +:json+ format, instead of having to |