diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2016-04-03 16:51:27 +0000 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2016-04-03 16:51:27 +0000 |
commit | bdcacc856641b6d2956616e393926e02b422199e (patch) | |
tree | 8fb0c5558f8ee1abc4c53ae9a52fd5cafbc3d5f4 /actionpack/lib | |
parent | 78f188a2f8e0f2d8bdb1d9ae38acc1d47af17a9d (diff) | |
parent | fc959d6efd9fbbe37fd4bf34abe08680f70d59fa (diff) | |
download | rails-bdcacc856641b6d2956616e393926e02b422199e.tar.gz rails-bdcacc856641b6d2956616e393926e02b422199e.tar.bz2 rails-bdcacc856641b6d2956616e393926e02b422199e.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 76e3b4d25a..64672de57e 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -184,6 +184,13 @@ module ActionController # Returns an unsafe, unfiltered # <tt>ActiveSupport::HashWithIndifferentAccess</tt> representation of this # parameter. + # + # params = ActionController::Parameters.new({ + # name: 'Senjougahara Hitagi', + # oddity: 'Heavy stone crab' + # }) + # params.to_unsafe_h + # # => {"name"=>"Senjougahara Hitagi", "oddity" => "Heavy stone crab"} def to_unsafe_h convert_parameters_to_hashes(@parameters, :to_unsafe_h) end |