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:
authorYorick Peterse <yorickpeterse@gmail.com>2016-05-12 01:01:36 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2016-05-12 01:01:36 +0300
commit3433a4f3eae7834f8283e884ef5591b5e05e68f8 (patch)
tree1c426c08151779f7554bbeee4212616a90780db2
parent437229960b45fc4ef7b03ca544dd2ce9f8787803 (diff)
Added missing attr_mentionable to Commit
This ensures that getting the mentioned users of a commit includes the users mentioned in any notes.
-rw-r--r--app/models/commit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 17ef76e679c..3fea563a487 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -8,6 +8,7 @@ class Commit
include StaticModel
attr_mentionable :safe_message, pipeline: :single_line
+ attr_mentionable :notes_with_associations
participant :author, index: 0
participant :committer, index: 1