messages controller fix
This commit is contained in:
parent
e96e11db96
commit
eac30875f3
|
@ -160,7 +160,7 @@ class MessagesController < ApplicationController
|
||||||
attachments = mail.attachments
|
attachments = mail.attachments
|
||||||
if not attachments.size.zero?
|
if not attachments.size.zero?
|
||||||
for idx in 0..attachments.size - 1
|
for idx in 0..attachments.size - 1
|
||||||
@body.gsub!(/cid:#{attachments[idx].cid}/,messages_attachment_download_path(message.uid,idx))
|
@body.gsub!(/cid:#{attachments[idx].cid}/,attachment_download_path(message.uid,idx))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue