instance method
transform_values!
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
transform_values!()
Performs values transformation and returns the altered ActionController::Parameters instance.
Source
# File actionpack/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
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 898
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters