aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/params_wrapper.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-18 22:19:49 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-19 22:40:52 -0500
commit1102aa2f64af688b47ee5fe4ba3e69acf0227e03 (patch)
treedda54eddbd745813e463cd91e7be8e407fd2d5c3 /actionpack/lib/action_controller/metal/params_wrapper.rb
parentfa362ffa212d42e0357cd77768db8ec681106755 (diff)
downloadrails-1102aa2f64af688b47ee5fe4ba3e69acf0227e03.tar.gz
rails-1102aa2f64af688b47ee5fe4ba3e69acf0227e03.tar.bz2
rails-1102aa2f64af688b47ee5fe4ba3e69acf0227e03.zip
update AC::ParamsWrapper documentation [ci skip]
Diffstat (limited to 'actionpack/lib/action_controller/metal/params_wrapper.rb')
-rw-r--r--actionpack/lib/action_controller/metal/params_wrapper.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/params_wrapper.rb b/actionpack/lib/action_controller/metal/params_wrapper.rb
index bbb711b49d..88b9e78da7 100644
--- a/actionpack/lib/action_controller/metal/params_wrapper.rb
+++ b/actionpack/lib/action_controller/metal/params_wrapper.rb
@@ -15,7 +15,7 @@ module ActionController
# a non-empty array:
#
# class UsersController < ApplicationController
- # wrap_parameters :format => [:json, :xml]
+ # wrap_parameters format: [:json, :xml]
# end
#
# If you enable +ParamsWrapper+ for +:json+ format, instead of having to
@@ -38,11 +38,12 @@ module ActionController
# +:exclude+ options like this:
#
# class UsersController < ApplicationController
- # wrap_parameters :person, :include => [:username, :password]
+ # wrap_parameters :person, include: [:username, :password]
# end
#
# On ActiveRecord models with no +:include+ or +:exclude+ option set,
- # it will only wrap the parameters returned by the class method attribute_names.
+ # it will only wrap the parameters returned by the class method
+ # <tt>attribute_names</tt>.
#
# If you're going to pass the parameters to an +ActiveModel+ object (such as
# <tt>User.new(params[:user])</tt>), you might consider passing the model class to