Method: ActionController::Parameters#merge!
- Defined in:
- lib/action_controller/metal/strong_parameters.rb
#merge!(other_hash, &block) ⇒ Object
:call-seq: merge!(other_hash)
Returns the current ActionController::Parameters instance with other_hash merged into current hash.
1022 1023 1024 1025 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 1022 def merge!(other_hash, &block) @parameters.merge!(other_hash.to_h, &block) self end |