method
convert_value
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: HashWithIndifferentAccess
convert_value(value)
public
Hide source
# File activesupport/lib/active_support/core_ext/hash/indifferent_access.rb, line 119 def convert_value(value) case value when Hash value.with_indifferent_access when Array value.collect { |e| e.is_a?(Hash) ? e.with_indifferent_access : e } else value end end