Skip to content

A platform for community discussion. Free, open, simple.

FIX: Fix html response in development after ApplicationController reload

Daniel Waterworthd4595fbf292d
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 23872ed5606..3ae29ee400b 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -650,7 +650,7 @@ class ApplicationController < ActionController::Base
def check_xhr
# bypass xhr check on PUT / POST / DELETE provided api key is there, otherwise calling api is annoying
return if !request.get? && (is_api? || is_user_api?)
- raise RenderEmpty.new unless ((request.format && request.format.json?) || request.xhr?)
+ raise ApplicationController::RenderEmpty.new unless ((request.format && request.format.json?) || request.xhr?)
end
def self.requires_login(arg = {})