Also convert arrays to object ids

This commit is contained in:
Greg Brockman 2011-07-04 19:10:03 -07:00
parent e9dbb72b03
commit 243ff69086

View File

@ -25,6 +25,8 @@ module Stripe
res = {}
h.each { |k, v| res[k] = objects_to_ids(v) }
res
when Array
h.map { |v| objects_to_ids(v) }
else
h
end