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