Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-20 21:17:14 +0300
committerDouwe Maan <douwe@gitlab.com>2015-08-20 21:17:14 +0300
commit0b401f2e94c5062d26887cdeda73341c1aae82a5 (patch)
tree8107cac3450eea68f6c213d33bfab5796d148d2c /lib
parente9972efc2f3d730e989907585dd1438c517a0bba (diff)
Fix a couple of whoopsy daisies.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/email/attachment_uploader.rb2
-rw-r--r--lib/gitlab/email/receiver.rb4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/email/attachment_uploader.rb b/lib/gitlab/email/attachment_uploader.rb
index 0c0f50f2751..32cece8316b 100644
--- a/lib/gitlab/email/attachment_uploader.rb
+++ b/lib/gitlab/email/attachment_uploader.rb
@@ -1,6 +1,6 @@
module Gitlab
module Email
- module AttachmentUploader
+ class AttachmentUploader
attr_accessor :message
def initialize(message)
diff --git a/lib/gitlab/email/receiver.rb b/lib/gitlab/email/receiver.rb
index c46fce6afe2..7160af29089 100644
--- a/lib/gitlab/email/receiver.rb
+++ b/lib/gitlab/email/receiver.rb
@@ -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)