Fix a couple of whoopsy daisies.

This commit is contained in:
Douwe Maan 2015-08-20 11:17:14 -07:00
parent e9972efc2f
commit 0b401f2e94
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
module Gitlab
module Email
module AttachmentUploader
class AttachmentUploader
attr_accessor :message
def initialize(message)

View File

@ -76,7 +76,7 @@ module Gitlab
end
def add_attachments(reply)
attachments = AttachmentUploader.new(message).execute(project)
attachments = Email::AttachmentUploader.new(message).execute(sent_notification.project)
attachments.each do |link|
text = "[#{link[:alt]}](#{link[:url]})"
@ -84,6 +84,8 @@ module Gitlab
reply << "\n\n#{text}"
end
reply
end
def create_note(reply)