instance method
convert_value_to_parameters
Ruby on Rails 7.0.10
Since v4.0.13 PrivateSignature
convert_value_to_parameters(value)
No documentation comment.
Parameters
-
valuereq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 946
def convert_value_to_parameters(value)
case value
when Array
return value if converted_arrays.member?(value)
converted = value.map { |_| convert_value_to_parameters(_) }
converted_arrays << converted.dup
converted
when Hash
self.class.new(value, @logging_context)
else
value
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 946
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters