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