method

replace

rails latest stable - Class: ActiveSupport::HashWithIndifferentAccess
replace(other_hash)
public

Replaces the contents of this hash with other_hash.

h = { "a" => 100, "b" => 200 }
h.replace({ "c" => 300, "d" => 400 }) # => {"c"=>300, "d"=>400}