Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
Merge branch 'oferlin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
reidab committed Apr 19, 2009
2 parents a9eb2f5 + 9c0a9fd commit b1a8383
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/campaign_monitor/list.rb
Expand Up @@ -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
Expand Down

0 comments on commit b1a8383

Please sign in to comment.