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