diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-09-27 16:56:55 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-09-27 16:56:55 -0300 |
commit | 7f41a08fd8614022ec693c374178846973fcd8c2 (patch) | |
tree | f5fa2cfaf78086b8574bab1b1bec282f2409b8d0 /actionpack/lib/action_controller/metal | |
parent | 60f77cdb816df7c5a26dd24a2955430bc1f6bf41 (diff) | |
download | rails-7f41a08fd8614022ec693c374178846973fcd8c2.tar.gz rails-7f41a08fd8614022ec693c374178846973fcd8c2.tar.bz2 rails-7f41a08fd8614022ec693c374178846973fcd8c2.zip |
Is not needed to wrap name inside an array here
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 2 |
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 7afa49a833..51c65e5e70 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -160,7 +160,7 @@ module ActionController # } # }) # - # permitted = params.permit(person: [ :name, { pets: [ :name ] } ]) + # permitted = params.permit(person: [ :name, { pets: :name } ]) # permitted.permitted? # => true # permitted[:person][:name] # => "Francesco" # permitted[:person][:age] # => nil |