diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-09-07 16:16:39 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-09-07 16:50:40 +0900 |
commit | 700c55831f993d52dcc1eb301346fbcfd54b82d9 (patch) | |
tree | 72f0ea1034149d5d7c59cb10932b554278189876 /activerecord/test/cases/invalid_connection_test.rb | |
parent | 06658f1d9db580ff570d783db30fd241a041e3b5 (diff) | |
download | rails-700c55831f993d52dcc1eb301346fbcfd54b82d9.tar.gz rails-700c55831f993d52dcc1eb301346fbcfd54b82d9.tar.bz2 rails-700c55831f993d52dcc1eb301346fbcfd54b82d9.zip |
call `.to_h` to avoid using deprecated method
`ActionController::Parameters#merge` call `HashWithIndifferentAccess#merge`.
In addition, it calls `HashWithIndifferentAccess#update` from
`HashWithIndifferentAccess#merge`, where it is called the `#to_hash` of argument.
But `ActionController::Parameters#to_hash` is deprecated, warning message is
displayed.
To avoid this, modify to convert object to `Hash`.
Fixes #26415
Diffstat (limited to 'activerecord/test/cases/invalid_connection_test.rb')
0 files changed, 0 insertions, 0 deletions