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.rbindex 23872ed5606..3ae29ee400b 100644--- a/app/controllers/application_controller.rb+++ b/app/controllers/application_controller.rb@@ -650,7 +650,7 @@ class ApplicationController < ActionController::Basedef check_xhr# bypass xhr check on PUT / POST / DELETE provided api key is there, otherwise calling api is annoyingreturn 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?)enddef self.requires_login(arg = {})