params wrapper docs correction

This commit is contained in:
Vijay Dev 2011-08-20 23:49:57 +05:30
parent 8bd76aa50e
commit 7da70a431c
1 changed files with 3 additions and 4 deletions

View File

@ -9,10 +9,9 @@ module ActionController
# Wraps parameters hash into nested hash. This will allow client to submit
# POST request without having to specify a root element in it.
#
# By default this functionality won't be enabled. You can enable
# it globally by setting +ActionController::Base.wrap_parameters+:
#
# ActionController::Base.wrap_parameters = [:json]
# This functionality is enabled in +config/initializers/wrap_parameters.rb+
# 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.
#
# You could also turn it on per controller by setting the format array to
# non-empty array: