messages controller fix

This commit is contained in:
Wojciech Todryk 2011-10-01 08:30:45 +02:00
parent e96e11db96
commit eac30875f3

View file

@ -160,7 +160,7 @@ class MessagesController < ApplicationController
attachments = mail.attachments
if not attachments.size.zero?
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