Skip to content
Permalink
Browse files

Merge branch 'oferlin/master'

  • Loading branch information...
reidab committed Apr 19, 2009
2 parents a9eb2f5 + 9c0a9fd commit b1a8383503a8039486bed15454897701614bd46e
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/campaign_monitor/list.rb
@@ -202,7 +202,13 @@ def bounced(date)
def custom_fields_array(custom_fields)
arr = []
custom_fields.each do |key, value|
arr << { "Key" => key, "Value" => value }
if value.is_a? Array
value.each do |array_value|
arr << { "Key" => key, "Value" => array_value }
end
else
arr << { "Key" => key, "Value" => value }
end
end
arr
end

0 comments on commit b1a8383

Please sign in to comment.
You can’t perform that action at this time.