summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Kalderimis <alex.kalderimis@gmail.com>2019-08-29 17:30:48 +0100
committerAlex Kalderimis <alex.kalderimis@gmail.com>2019-08-29 17:40:17 +0100
commit8e8920b9eee851ddceea1d41722e540fb7aa3cae (patch)
treeea7d5d99e245667c5de697a8aeefa1e35f6468de
parentde651ce8020693ee0d6cef0f8b7eeae59c31afde (diff)
downloadgitlab-ce-ce-ajk-design-todos-send-notifications.tar.gz
Extract query parameters from note-url generatorce-ajk-design-todos-send-notifications
this allows us to make more robust EE extensions
-rw-r--r--app/mailers/emails/notes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/mailers/emails/notes.rb b/app/mailers/emails/notes.rb
index 04db1980b99..d728a43fd15 100644
--- a/app/mailers/emails/notes.rb
+++ b/app/mailers/emails/notes.rb
@@ -45,7 +45,11 @@ module Emails
private
def note_target_url_options
- [@project || @group, @note.noteable, anchor: "note_#{@note.id}"]
+ [@project || @group, @note.noteable, note_target_url_query_params]
+ end
+
+ def note_target_url_query_params
+ { anchor: "note_#{@note.id}" }
end
def note_thread_options(recipient_id)