Commit ad48ecac authored by Alfredo Sumaran's avatar Alfredo Sumaran Committed by Jacob Schatz

Update method name and remove unneeded params

parent 562c9652
...@@ -4,7 +4,7 @@ module Projects ...@@ -4,7 +4,7 @@ module Projects
@target = get_target(note_type, note_id) @target = get_target(note_type, note_id)
participating = participating =
if note_type && note_id if note_type && note_id
participants_in(note_type, note_id) participants_in_target
else else
[] []
end end
...@@ -31,7 +31,7 @@ module Projects ...@@ -31,7 +31,7 @@ module Projects
}] }]
end end
def participants_in(type, id) def participants_in_target
return [] unless @target return [] unless @target
users = @target.participants(current_user) users = @target.participants(current_user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment