From 2d354ec9b0f31c6bdd3d17b2760dd1b48d2da8dc Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 21 Jan 2019 14:37:04 +0800 Subject: [PATCH] FIX: `ForumsController` doesn't need to inherit from `ApplicationController`. Application controller has a whole bunch of before/after actions which we have no need for. --- app/controllers/forums_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index ec02d4e5a18..7071a04ec38 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -1,11 +1,6 @@ # frozen_string_literal: true -class ForumsController < ApplicationController - - skip_before_action :preload_json, :check_xhr - skip_before_action :authorize_mini_profiler, only: [:status] - skip_before_action :redirect_to_login_if_required, only: [:status] - +class ForumsController < ActionController::Base def status if $shutdown render plain: 'shutting down', status: 500