Method: ActionController::Parameters#reverse_merge
- Defined in:
- actionpack/lib/action_controller/metal/strong_parameters.rb
#reverse_merge(other_hash) ⇒ Object Also known as: with_defaults
Returns a new ActionController::Parameters instance with all keys from current hash merged into other_hash.
1037 1038 1039 1040 1041 |
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 1037 def reverse_merge(other_hash) new_instance_with_inherited_permitted_status( other_hash.to_h.merge(@parameters) ) end |