Fix a couple of whoopsy daisies.
This commit is contained in:
parent
e9972efc2f
commit
0b401f2e94
|
@ -1,6 +1,6 @@
|
|||
module Gitlab
|
||||
module Email
|
||||
module AttachmentUploader
|
||||
class AttachmentUploader
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(message)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue