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@selenight.nl>2017-04-24 20:24:34 +0300
committerDouwe Maan <douwe@selenight.nl>2017-04-24 20:24:39 +0300
commitbc4eeb96ae5c7de96f7e8e16aa508e3308f06c5b (patch)
treecd2aeeb688c93e4c3556f2c20e23e2074c76777a /app/models/individual_note_discussion.rb
parent1005389f70070245092c1ae5f3f9b10b8e7c102e (diff)
Ensure replying to an individual note by email creates a note with its own discussion ID
Diffstat (limited to 'app/models/individual_note_discussion.rb')
-rw-r--r--app/models/individual_note_discussion.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/individual_note_discussion.rb b/app/models/individual_note_discussion.rb
index c3f21c55240..6be8ca45739 100644
--- a/app/models/individual_note_discussion.rb
+++ b/app/models/individual_note_discussion.rb
@@ -10,4 +10,8 @@ class IndividualNoteDiscussion < Discussion
def individual_note?
true
end
+
+ def reply_attributes
+ super.tap { |attrs| attrs.delete(:discussion_id) }
+ end
end