• Y
    call `.to_h` to avoid using deprecated method · 700c5583
    yuuji.yaginuma 提交于
    `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
    700c5583
strong_parameters.rb 32.6 KB