instance method
convert_value_to_hash
Ruby on Rails 8.1.2
Since v8.0.4 PrivateAvailable in: v8.0.4 v8.1.2
Signature
convert_value_to_hash(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 427
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 427
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess