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.
This commit is contained in:
Guo Xiang Tan 2019-01-21 14:37:04 +08:00
parent eb9565d8fc
commit 2d354ec9b0
1 changed files with 1 additions and 6 deletions

View File

@ -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