diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-11-07 16:38:10 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-11-07 16:38:17 -0800 |
commit | b4052dc6d4e305c35ba02ae2b878e058622ce868 (patch) | |
tree | 084085a649dc24d3063760534a56295ea3a8b2c9 /lib | |
parent | 0683f5aa5b6f617d40a06efd10c7adc96a56d6a7 (diff) | |
download | rails-b4052dc6d4e305c35ba02ae2b878e058622ce868.tar.gz rails-b4052dc6d4e305c35ba02ae2b878e058622ce868.tar.bz2 rails-b4052dc6d4e305c35ba02ae2b878e058622ce868.zip |
Recipient fields may be nil
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_mailbox/mail_ext/addresses.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_mailbox/mail_ext/addresses.rb b/lib/action_mailbox/mail_ext/addresses.rb index d7ace82bbf..75e39686ea 100644 --- a/lib/action_mailbox/mail_ext/addresses.rb +++ b/lib/action_mailbox/mail_ext/addresses.rb @@ -21,6 +21,6 @@ class Mail::Message private def convert_to_addresses(recipients) - recipients.collect { |recipient| Mail::Address.new recipient } + Array(recipients).collect { |recipient| Mail::Address.new recipient } end end |