Feature #44407 ยป 0001-Preload-the-authors-of-the-attachments-of-an-issue-N.patch
| app/views/issues/show.api.rsb | ||
|---|---|---|
| 34 | 34 |
render_api_issue_children(@issue, api) if include_in_api_response?('children')
|
| 35 | 35 |
api.array :attachments do |
| 36 |
@issue.attachments.each do |attachment| |
|
| 36 |
@issue.attachments.preload(:author).each do |attachment|
|
|
| 37 | 37 |
render_api_attachment(attachment, api) |
| 38 | 38 |
end |
| 39 | 39 |
end if include_in_api_response?('attachments')
|