1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
This commit is contained in:
Eugene Howe 2016-11-08 09:22:12 -05:00
parent 8f79598297
commit 2c6ae9a9b7

View file

@ -59,7 +59,7 @@ module Fog
def stringify_keys(object)
case object
when Hash
object.each_with_object({}) { |(k, v), a| a[k.to_s] = stringify_keys(v) }
object.inject({}) { |h,(k,v)| h[k.to_s] = stringify_keys(v); h }
when Array
object.map { |v| stringify_keys(v) }
else