mirror of https://github.com/rails/rails
Merge pull request #2604 from vijaydev/params_wrapper_docs
Minor edit in the params wrapper api docs
This commit is contained in:
commit
77dfcae385
|
@ -9,10 +9,9 @@ module ActionController
|
||||||
# Wraps parameters hash into nested hash. This will allow client to submit
|
# Wraps parameters hash into nested hash. This will allow client to submit
|
||||||
# POST request without having to specify a root element in it.
|
# POST request without having to specify a root element in it.
|
||||||
#
|
#
|
||||||
# By default this functionality won't be enabled. You can enable
|
# This functionality is enabled in +config/initializers/wrap_parameters.rb+
|
||||||
# it globally by setting +ActionController::Base.wrap_parameters+:
|
# and can be customized. If you are upgrading to Rails 3.1, this file will
|
||||||
#
|
# need to be created for the functionality to be enabled.
|
||||||
# ActionController::Base.wrap_parameters = [:json]
|
|
||||||
#
|
#
|
||||||
# You could also turn it on per controller by setting the format array to
|
# You could also turn it on per controller by setting the format array to
|
||||||
# non-empty array:
|
# non-empty array:
|
||||||
|
|
Loading…
Reference in New Issue