instance method
reverse_merge
Ruby on Rails edge
Since v5.1.7Signature
reverse_merge(other_hash)
Returns a new ActionController::Parameters instance with all keys from
current hash merged into `other_hash`.
: (untyped) -> self
Parameters
-
other_hashreq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1121
def reverse_merge(other_hash)
new_instance_with_inherited_permitted_status(
other_hash.to_h.merge(@parameters)
)
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 1121
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters