fix error response
authorTom Clegg <tom@clinicalfuture.com>
Fri, 25 Jan 2013 00:25:08 +0000 (16:25 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 25 Jan 2013 00:25:08 +0000 (16:25 -0800)
app/controllers/application_controller.rb

index 74e277f14ccda55e53fbb9eb9f7757b52dd09e54..ebc749e20f41aa6d36cad3d77694536df596a308 100644 (file)
@@ -122,7 +122,7 @@ class ApplicationController < ActionController::Base
           redirect_to '/auth/joshid'
         }
         format.json {
-          render :json => { 'error' => 'Not logged in' }.to_json
+          render :json => { errors: ['Not logged in'] }.to_json
         }
       end
     end