diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-20 12:20:53 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-20 12:20:53 -0700 |
commit | 77dfcae38504993bebb85849b73eef829849b0b7 (patch) | |
tree | 710e6c2430fc9080b641c7840ec9c1e8504235b5 | |
parent | 257366d118a9f45883ad4f1950c54ba07c248cbf (diff) | |
parent | 7da70a431c3c122d3b9425472635bf8368363525 (diff) | |
download | rails-77dfcae38504993bebb85849b73eef829849b0b7.tar.gz rails-77dfcae38504993bebb85849b73eef829849b0b7.tar.bz2 rails-77dfcae38504993bebb85849b73eef829849b0b7.zip |
Merge pull request #2604 from vijaydev/params_wrapper_docs
Minor edit in the params wrapper api docs
-rw-r--r-- | actionpack/lib/action_controller/metal/params_wrapper.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/params_wrapper.rb b/actionpack/lib/action_controller/metal/params_wrapper.rb index 2d8afc3a78..f24203db3a 100644 --- a/actionpack/lib/action_controller/metal/params_wrapper.rb +++ b/actionpack/lib/action_controller/metal/params_wrapper.rb @@ -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: |