diff options
author | Stan Hu <stanhu@gmail.com> | 2016-04-29 16:02:28 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-05-02 11:01:32 -0700 |
commit | f64b82e1da47e0f0b4e0f6e91746ed95a98105dd (patch) | |
tree | c01800db3b988b88bedf3f72311750811ae8c1fb /app/mailers | |
parent | 0652d92526cb504be076c059f76360b4c876135b (diff) | |
download | gitlab-ce-f64b82e1da47e0f0b4e0f6e91746ed95a98105dd.tar.gz |
Support e-mail notifications for comments on project snippets
Closes #2334
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/notes.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/mailers/emails/notes.rb b/app/mailers/emails/notes.rb index cdc40b81ee1..96116e916dd 100644 --- a/app/mailers/emails/notes.rb +++ b/app/mailers/emails/notes.rb @@ -28,6 +28,14 @@ module Emails mail_answer_thread(@merge_request, note_thread_options(recipient_id)) end + def note_snippet_email(recipient_id, note_id) + setup_note_mail(note_id, recipient_id) + + @snippet = @note.noteable + @target_url = namespace_project_snippet_url(*note_target_url_options) + mail_answer_thread(@snippet, note_thread_options(recipient_id)) + end + private def note_target_url_options |