Method: ActionController::Parameters#reverse_merge
- Defined in:
- 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.
1033 1034 1035 1036 1037 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 1033 def reverse_merge(other_hash) new_instance_with_inherited_permitted_status( other_hash.to_h.merge(@parameters) ) end |