instance method
merge
Ruby on Rails edge
Since v5.0.7.2Signature
merge(*other_hashes, &block)
Returns a new ActionController::Parameters instance with all keys from other_hashes merged into current hash.
Parameters
-
other_hashesrest -
blockblock
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1070
def merge(*other_hashes, &block)
new_instance_with_inherited_permitted_status(
@parameters.merge(*other_hashes.map!(&:to_h), &block)
)
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 1070
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters