summaryrefslogtreecommitdiff
path: root/app/controllers/projects/merge_requests_controller.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-08-03 17:31:03 +0900
committerShinya Maeda <shinya@gitlab.com>2018-08-03 17:31:03 +0900
commitc53de19ff8b8734d9924a261206318021c39a952 (patch)
treed7d1d6a30d8681d30fb7835351fbb36d66741ed3 /app/controllers/projects/merge_requests_controller.rb
parentc8f13cc5bd4fbd7b9e2bab1bdded73a080a29255 (diff)
downloadgitlab-ce-c53de19ff8b8734d9924a261206318021c39a952.tar.gz
Use serializable_hash for compared results
Diffstat (limited to 'app/controllers/projects/merge_requests_controller.rb')
-rw-r--r--app/controllers/projects/merge_requests_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/merge_requests_controller.rb b/app/controllers/projects/merge_requests_controller.rb
index 410fb92eb7c..eaf4434f913 100644
--- a/app/controllers/projects/merge_requests_controller.rb
+++ b/app/controllers/projects/merge_requests_controller.rb
@@ -108,7 +108,7 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
when :parsing
render json: '', status: :no_content
when :parsed
- render json: result[:data], status: :ok
+ render json: result[:data].to_json, status: :ok
when :error
render json: { status_reason: result[:status_reason] }, status: :bad_request
else