Permalink
Browse files

Merge pull request #2604 from vijaydev/params_wrapper_docs

Minor edit in the params wrapper api docs
  • Loading branch information...
1 parent d29eec6 commit f8f1e1880845cd845077b0d8ccbbd7b7645fb520 @spastorino spastorino committed Aug 20, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 actionpack/lib/action_controller/metal/params_wrapper.rb
View
7 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:

0 comments on commit f8f1e18

Please sign in to comment.