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 the current ActionController::Parameters instance with current hash merged into other_hash.
1042 1043 1044 1045 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 1042 def reverse_merge!(other_hash) @parameters.merge!(other_hash.to_h) { |key, left, right| left } self end |