instance method deep_transform_values!

Ruby on Rails edge

Since edge

Signature

deep_transform_values!(&block)

Returns the same ActionController::Parameters instance with changed values. This includes the values from the root hash and from all nested hashes and arrays. The keys are unchanged.

Parameters

block block
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 990
    def deep_transform_values!(&block)
      @parameters = _deep_transform_values_in_object!(@parameters, &block)
      self
    end

Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 990 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Parameters

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close