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