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:
parent
eb9565d8fc
commit
2d354ec9b0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue