mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 06:48:25 +08:00

Application controller has a whole bunch of before/after actions which we have no need for.
13 lines
211 B
Ruby
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
|