DeepMergeHash
sourced from: github.com/futurechimp/plissken/blob/master/lib/plissken/ext/hash/to_snake_keys.rb.
sourced from: github.com/futurechimp/plissken/blob/master/lib/plissken/ext/hash/to_snake_keys.rb
5 6 7 8 9 10 11 12 13 14
# File 'lib/gclouder/monkey_patches/hash.rb', line 5 def to_snake_keys(value = self) case value when Array value.map { |v| to_snake_keys(v) } when Hash snake_hash(value) else value end end