a3f64b195e
* store @participants in variable * store result of subscribed? call into variable In total it reduce amount of SQL queries for merge_request with 10 comments/participants twice. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
4 lines
165 B
Text
4 lines
165 B
Text
.participants
|
|
%span #{@participants.count} participants
|
|
- @participants.each do |participant|
|
|
= link_to_member(@project, participant, name: false, size: 24)
|