Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update AC::ParamsWrapper documentation [ci skip]

  • Loading branch information...
commit 1102aa2f64af688b47ee5fe4ba3e69acf0227e03 1 parent fa362ff
Francesco Rodriguez authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 actionpack/lib/action_controller/metal/params_wrapper.rb
View
7 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

0 comments on commit 1102aa2

Please sign in to comment.
Something went wrong with that request. Please try again.