instance method
transform_values!
Ruby on Rails edge
Since v5.0.7.2Signature
transform_values!(&block)
Performs values transformation and returns the altered ActionController::Parameters instance.
Parameters
-
blockblock
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 927
def transform_values!(&block)
return to_enum(:transform_values!) unless block_given?
@parameters.transform_values! { |v| yield convert_value_to_parameters(v) }
self
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 927
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters