This should have been compact from the get-go.

This commit is contained in:
Samuel Cochran 2011-05-29 19:57:04 +08:00
parent 08e3745a96
commit ac1e200111
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ module MailCatcher
"source",
("html" if MailCatcher::Mail.message_has_html? id),
("plain" if MailCatcher::Mail.message_has_plain? id),
].flatten,
].compact,
"attachments" => MailCatcher::Mail.message_attachments(id).map do |attachment|
attachment.merge({"href" => "/messages/#{escape(id)}/#{escape(attachment['cid'])}"})
end,