instance method
convert_hashes_to_parameters
Ruby on Rails 4.2.9
Since v4.0.13 PrivateSignature
convert_hashes_to_parameters(key, value, assign_if_converted=true)
No documentation comment.
Parameters
-
keyreq -
valuereq -
assign_if_convertedopt = true
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 455
def convert_hashes_to_parameters(key, value, assign_if_converted=true)
converted = convert_value_to_parameters(value)
self[key] = converted if assign_if_converted && !converted.equal?(value)
converted
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 455
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters