instance method
reverse_merge
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
reverse_merge(other_hash)
Returns a new ActionController::Parameters instance with all keys from current hash merged into other_hash.
Parameters
-
other_hashreq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 900
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 900
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters