diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-06-03 16:07:18 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-06-03 17:19:31 +0100 |
commit | 832da034a6855b94eb5eefd3b3dc4fb8fc9f78a6 (patch) | |
tree | 458d2aed674905ba81d39ce201b7493b9b53a535 /app/controllers/application_controller.rb | |
parent | fc7fc117008be617cad6d546e0e1319767a0331f (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.rb | 5 |
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? |