Method: ActionController::Parameters#transform_values!
- Defined in:
- lib/action_controller/metal/strong_parameters.rb
#transform_values! ⇒ Object
Performs values transformation and returns the altered ActionController::Parameters instance.
898 899 900 901 902 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 898 def transform_values! return to_enum(:transform_values!) unless block_given? @parameters.transform_values! { |v| yield convert_value_to_parameters(v) } self end |