From 0239b0077fbc55d372347b8cbd35e7447e91945b Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 18 Jun 2015 17:04:22 -0700 Subject: [PATCH] fix auth failed json rendering --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3ca3a0644..9ae7bc67d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -55,7 +55,7 @@ protected end fmt.json do - render :json => {:success => false, :reason => "authentication failed"}, :status => 401 + render :json => {:success => false, :reason => "authentication failed"}.to_json, :status => 401 end end end