2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/controllers/forums_controller.rb

20 lines
327 B
Ruby
Raw Normal View History

2018-01-15 12:43:26 +11:00
# frozen_string_literal: true
2019-05-03 12:21:07 +02:00
require "read_only"
class ForumsController < ActionController::Base
2019-05-03 12:21:07 +02:00
include ReadOnly
before_action :check_readonly_mode
after_action :add_readonly_header
2013-02-05 14:16:51 -05:00
def status
if $shutdown
render plain: 'shutting down', status: 500
2013-02-05 14:16:51 -05:00
else
render plain: 'ok'
2013-02-05 14:16:51 -05:00
end
end
end