mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 06:30:15 +08:00
2d354ec9b0
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
|