summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-29 18:53:01 -0500
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-16 07:21:28 -0400
commitad48ecacaef508139117ceaea1a9eeaeb7046b48 (patch)
treed8073a10b74577846d4952d03bcbca0dd282cd72 /app/services
parent562c9652d687bb03d0aa5b744016946d7a293a82 (diff)
downloadgitlab-ce-ad48ecacaef508139117ceaea1a9eeaeb7046b48.tar.gz
Update method name and remove unneeded params
Diffstat (limited to 'app/services')
-rw-r--r--app/services/projects/participants_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/projects/participants_service.rb b/app/services/projects/participants_service.rb
index ba88ba73c35..800747b7ef6 100644
--- a/app/services/projects/participants_service.rb
+++ b/app/services/projects/participants_service.rb
@@ -4,7 +4,7 @@ module Projects
@target = get_target(note_type, note_id)
participating =
if note_type && note_id
- participants_in(note_type, note_id)
+ participants_in_target
else
[]
end
@@ -31,7 +31,7 @@ module Projects
}]
end
- def participants_in(type, id)
+ def participants_in_target
return [] unless @target
users = @target.participants(current_user)