mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
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:
@ -1,11 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ForumsController < ApplicationController
|
class ForumsController < ActionController::Base
|
||||||
|
|
||||||
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]
|
|
||||||
|
|
||||||
def status
|
def status
|
||||||
if $shutdown
|
if $shutdown
|
||||||
render plain: 'shutting down', status: 500
|
render plain: 'shutting down', status: 500
|
||||||
|
Reference in New Issue
Block a user