From 243ff690863c436bf47511c75cbb4052d2f0778f Mon Sep 17 00:00:00 2001 From: Greg Brockman Date: Mon, 4 Jul 2011 19:10:03 -0700 Subject: [PATCH] Also convert arrays to object ids --- lib/stripe.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/stripe.rb b/lib/stripe.rb index 58a6cdb5..8e07dd8b 100644 --- a/lib/stripe.rb +++ b/lib/stripe.rb @@ -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