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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/email/receiver.rb')
-rw-r--r--lib/gitlab/email/receiver.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/email/receiver.rb b/lib/gitlab/email/receiver.rb
index 242def826be..526f1188065 100644
--- a/lib/gitlab/email/receiver.rb
+++ b/lib/gitlab/email/receiver.rb
@@ -44,6 +44,10 @@ module Gitlab
}
end
+ def mail
+ strong_memoize(:mail) { build_mail }
+ end
+
private
def handler
@@ -54,10 +58,6 @@ module Gitlab
Handler.for(mail, mail_key)
end
- def mail
- strong_memoize(:mail) { build_mail }
- end
-
def build_mail
Mail::Message.new(@raw)
rescue Encoding::UndefinedConversionError,