From 8e1a7377c5cb02249138229f9fbb6096f998976a Mon Sep 17 00:00:00 2001 From: Talha Saifi Date: Thu, 21 Sep 2017 13:26:18 -0700 Subject: [PATCH 1/2] fix json render --- app/controllers/health_monitor/health_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/health_monitor/health_controller.rb b/app/controllers/health_monitor/health_controller.rb index 121ab81..3e979aa 100644 --- a/app/controllers/health_monitor/health_controller.rb +++ b/app/controllers/health_monitor/health_controller.rb @@ -14,7 +14,7 @@ def check respond_to do |format| format.html format.json do - render json: statuses + render json: statuses.to_json end format.xml do render xml: statuses From 987bf79e6f231796d61c4b4fea14b3a1d2e01f24 Mon Sep 17 00:00:00 2001 From: Talha Saifi Date: Fri, 22 Sep 2017 11:03:50 -0700 Subject: [PATCH 2/2] make xml and json caller consistent --- app/controllers/health_monitor/health_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/health_monitor/health_controller.rb b/app/controllers/health_monitor/health_controller.rb index 3e979aa..110d39b 100644 --- a/app/controllers/health_monitor/health_controller.rb +++ b/app/controllers/health_monitor/health_controller.rb @@ -17,7 +17,7 @@ def check render json: statuses.to_json end format.xml do - render xml: statuses + render xml: statuses.to_xml end end end