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:
authorDouwe Maan <douwe@gitlab.com>2015-08-19 22:35:23 +0300
committerDouwe Maan <douwe@gitlab.com>2015-08-19 22:35:23 +0300
commit992dbbd9fe619ab3002f7c0c552657da8269df49 (patch)
tree5ae59f108ffe8d208928e7d2c2265018e033ad26 /app/mailers/notify.rb
parenta8a861ae2a122b310d1aca6f9f9b1d0601b8c49f (diff)
Move `sent_notification!` out of Notify.
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r--app/mailers/notify.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 1a2286f9d47..5717c89e61d 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -33,27 +33,6 @@ class Notify < BaseMailer
allowed_domains
end
- def sent_notification!(noteable, recipient_id)
- return unless reply_key
-
- noteable_id = nil
- commit_id = nil
- if noteable.is_a?(Commit)
- commit_id = noteable.id
- else
- noteable_id = noteable.id
- end
-
- SentNotification.create(
- project: noteable.project,
- noteable_type: noteable.class.name,
- noteable_id: noteable_id,
- commit_id: commit_id,
- recipient_id: recipient_id,
- reply_key: reply_key
- )
- end
-
private
def can_send_from_user_email?(sender)