Method: ActionController::Parameters#merge
- Defined in:
- actionpack/lib/action_controller/metal/strong_parameters.rb
#merge(other_hash) ⇒ Object
Returns a new ‘ActionController::Parameters` instance with all keys from `other_hash` merged into current hash.
1011 1012 1013 1014 1015 |
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 1011 def merge(other_hash) new_instance_with_inherited_permitted_status( @parameters.merge(other_hash.to_h) ) end |