instance method
convert_value_to_parameters
Ruby on Rails 6.1.7.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 938
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)
else
value
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 938
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters