aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-10-21 11:49:51 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-10-21 11:49:51 -0500
commitae057d622fccf7cc5dcd2609a7fe3f1e0589808f (patch)
tree6d15e04c2db9c5fa2de519d3719876c9f03283f0 /actionpack/lib/action_controller
parent4736c14fdb6ad1071308001040f3b11c5af1cd29 (diff)
downloadrails-ae057d622fccf7cc5dcd2609a7fe3f1e0589808f.tar.gz
rails-ae057d622fccf7cc5dcd2609a7fe3f1e0589808f.tar.bz2
rails-ae057d622fccf7cc5dcd2609a7fe3f1e0589808f.zip
fix StrongParameters example [ci skip]
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb
index 7d5781b23a..73f2e94cd1 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -361,7 +361,7 @@ module ActionController
# # It's mandatory to specify the nested attributes that should be whitelisted.
# # If you use `permit` with just the key that points to the nested attributes hash,
# # it will return an empty hash.
- # params.require(:person).permit(:name, :age, pets_attributes: { :name, :category })
+ # params.require(:person).permit(:name, :age, pets_attributes: [ :name, :category ])
# end
# end
#