Add json response for user avatar in merge request
This commit is contained in:
parent
cb6192986a
commit
750cd5c0e0
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
|
|||
@merge_request.target_project, @merge_request])
|
||||
end
|
||||
format.json do
|
||||
render json: @merge_request.to_json(include: [:milestone, :labels, :assignee])
|
||||
render json: @merge_request.to_json(include: [:milestone, :labels, assignee: { methods: :avatar_url }])
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue