instance method
convert_value_to_parameters
Ruby on Rails 5.2.8.1
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 837
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
converted
when Hash
self.class.new(value)
else
value
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 837
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters