lib/turf.rb
def deep_symbolize_keys(input)
    case input
    when Hash
      input.transform_keys(&:to_sym).transform_values do |value|
        deep_symbolize_keys(value)
      end
    when Array
      input.map do |value|
        deep_symbolize_keys value
      end
    else
      input
    end
  end
# A non-intrusive implemenation of Rails' Hash#deep_symbolize_keys
A non-intrusive implemenation of Rails' Hash#deep_symbolize_keys
A non - intrusive implemenation of Rails ' Hash#deep_symbolize_keys
def deep_symbolize_keys(input)
    case input
    when Hash
      input.transform_keys(&:to_sym).transform_values do |value|
        deep_symbolize_keys(value)
      end
    when Array
      input.map do |value|
        deep_symbolize_keys value
      end
    else
      input
    end
  end
def deep_symbolize_keys ( input ) case input when Hash input . transform_keys ( & :to_sym ) . transform_values do | value | deep_symbolize_keys ( value ) end when Array input . map do | value | deep_symbolize_keys value end else input end end
A non-intrusive implemenation of Rails' Hash#deep_symbolize_keys
A non - intrusive implemenation of Rails ' Hash#deep_symbolize_keys
input