From 8e8920b9eee851ddceea1d41722e540fb7aa3cae Mon Sep 17 00:00:00 2001 From: Alex Kalderimis Date: Thu, 29 Aug 2019 17:30:48 +0100 Subject: Extract query parameters from note-url generator this allows us to make more robust EE extensions --- app/mailers/emails/notes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1