Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
a9b04c45
Commit
a9b04c45
authored
Apr 15, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Snippet#participants.
parent
c644dd01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
app/models/commit.rb
app/models/commit.rb
+1
-0
app/models/concerns/issuable.rb
app/models/concerns/issuable.rb
+1
-0
app/models/snippet.rb
app/models/snippet.rb
+2
-0
No files found.
app/models/commit.rb
View file @
a9b04c45
...
@@ -138,6 +138,7 @@ class Commit
...
@@ -138,6 +138,7 @@ class Commit
users
=
[]
users
=
[]
users
<<
author
users
<<
author
users
<<
committer
users
<<
committer
mentions
=
[]
mentions
=
[]
mentions
<<
self
.
mentioned_users
(
current_user
,
project
)
mentions
<<
self
.
mentioned_users
(
current_user
,
project
)
...
...
app/models/concerns/issuable.rb
View file @
a9b04c45
...
@@ -122,6 +122,7 @@ module Issuable
...
@@ -122,6 +122,7 @@ module Issuable
users
=
[]
users
=
[]
users
<<
author
users
<<
author
users
<<
assignee
if
is_assigned?
users
<<
assignee
if
is_assigned?
mentions
=
[]
mentions
=
[]
mentions
<<
self
.
mentioned_users
(
current_user
)
mentions
<<
self
.
mentioned_users
(
current_user
)
...
...
app/models/snippet.rb
View file @
a9b04c45
...
@@ -91,6 +91,8 @@ class Snippet < ActiveRecord::Base
...
@@ -91,6 +91,8 @@ class Snippet < ActiveRecord::Base
users
=
[]
users
=
[]
users
<<
author
users
<<
author
mentions
=
[]
notes
.
each
do
|
note
|
notes
.
each
do
|
note
|
users
<<
note
.
author
users
<<
note
.
author
mentions
<<
note
.
mentioned_users
(
current_user
)
mentions
<<
note
.
mentioned_users
(
current_user
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment