Add json response for user avatar in merge request

This commit is contained in:
Jacob Schatz 2016-03-26 12:15:42 -04:00 committed by Jacob Schatz
parent cb6192986a
commit 750cd5c0e0

View file

@ -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