messages controller fix

master
Wojciech Todryk 2011-10-01 08:30:45 +02:00
parent e96e11db96
commit eac30875f3
1 changed files with 1 additions and 1 deletions

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