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