instance method
convert_parameters_to_hashes
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
convert_parameters_to_hashes(value, using)
No documentation comment.
Parameters
-
valuereq -
usingreq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 917
def convert_parameters_to_hashes(value, using)
case value
when Array
value.map { |v| convert_parameters_to_hashes(v, using) }
when Hash
value.transform_values do |v|
convert_parameters_to_hashes(v, using)
end.with_indifferent_access
when Parameters
value.send(using)
else
value
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 917
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters