instance method
convert_value_to_hash
Ruby on Rails edge
Since v8.0.5.1 Private — implementation detail, not part of the public APISignature
convert_value_to_hash(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 476
def convert_value_to_hash(value)
if value.is_a? Hash
value.to_hash
elsif value.is_a?(Array)
value.map { |e| convert_value_to_hash(e) }
else
value
end
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 476
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess