diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-11 21:56:55 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-18 17:33:24 -0400 |
commit | 9f4c2632ef28b9622ffa0eca5d02beea8ec809c0 (patch) | |
tree | 18b38a2187e01d9f02f24d96c67a4e60af8e5827 /actionpack/test/controller/parameters/raise_on_unpermitted_params_test.rb | |
parent | fd88ccc905549c61e0e4525fcb68b91d20b9afe9 (diff) | |
download | rails-9f4c2632ef28b9622ffa0eca5d02beea8ec809c0.tar.gz rails-9f4c2632ef28b9622ffa0eca5d02beea8ec809c0.tar.bz2 rails-9f4c2632ef28b9622ffa0eca5d02beea8ec809c0.zip |
Add ActionController::Parameters#to_hash to implict conversion
Now methods that implicit convert objects to a hash will be able to work
without requiring the users to change their implementation.
This method will return a Hash instead of a HashWithIndefirentAccess
to mimic the same implementation of HashWithIndefirentAccess#to_hash.
Diffstat (limited to 'actionpack/test/controller/parameters/raise_on_unpermitted_params_test.rb')
0 files changed, 0 insertions, 0 deletions