method

convert_value

convert_value(value, options = {})
public

No documentation available.

# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 262
      def convert_value(value, options = {})
        if value.is_a? Hash
          if options[:for] == :to_hash
            value.to_hash
          else
            value.nested_under_indifferent_access
          end
        elsif value.is_a?(Array)
          unless options[:for] == :assignment
            value = value.dup
          end
          value.map! { |e| convert_value(e, options) }
        else
          value
        end
      end