aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-03 16:07:18 +0100
committerLouise Crow <louise.crow@gmail.com>2013-06-03 17:19:31 +0100
commit832da034a6855b94eb5eefd3b3dc4fb8fc9f78a6 (patch)
tree458d2aed674905ba81d39ce201b7493b9b53a535 /app/controllers/application_controller.rb
parentfc7fc117008be617cad6d546e0e1319767a0331f (diff)
For non-HTML requests, just return the response code for now.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 2615b61f2..d1d702616 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -142,7 +142,10 @@ class ApplicationController < ActionController::Base
ExceptionNotifier::Notifier.exception_notification(request.env, exception).deliver
@status = 500
end
- render :template => "general/exception_caught", :status => @status
+ respond_to do |format|
+ format.html{ render :template => "general/exception_caught", :status => @status }
+ format.any{ render :nothing => true, :status => @status }
+ end
end
def local_request?