discourse/app/controllers/forums_controller.rb
Guo Xiang Tan 2d354ec9b0 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.
2019-01-21 14:37:04 +08:00

13 lines
211 B
Ruby

# frozen_string_literal: true
class ForumsController < ActionController::Base
def status
if $shutdown
render plain: 'shutting down', status: 500
else
render plain: 'ok'
end
end
end