@@ -198,7 +198,7 class MailHandler < ActionMailer::Base | |||
|
198 | 198 | end |
|
199 | 199 | |
|
200 | 200 | def add_attachments(obj) |
|
201 | if email.attachments.any? | |
|
201 | if email.attachments && email.attachments.any? | |
|
202 | 202 | email.attachments.each do |attachment| |
|
203 | 203 | obj.attachments << Attachment.create(:container => obj, |
|
204 | 204 | :file => attachment, |
General Comments 0
You need to be logged in to leave comments.
Login now