From 689ccb3d5d5e5a599c9a59e3b3ab71495feb43c7 Mon Sep 17 00:00:00 2001 From: aamine Date: Tue, 22 Aug 2006 10:21:31 +0000 Subject: * lib/net/smtp.rb: parameter `to_addrs' might be an Array, .flatten is required. [ruby-dev:29316] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/smtp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index ab9c1afb8..29b7c0b71 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -794,7 +794,7 @@ module Net def rcptto_list(to_addrs) raise ArgumentError, 'mail destination not given' if to_addrs.empty? - to_addrs.each do |addr| + to_addrs.flatten.each do |addr| rcptto addr end end -- cgit