FIX: add ReadOnly hear to /srv/status

This commit is contained in:
Régis Hanol
2019-05-03 12:21:07 +02:00
parent 16ef060a76
commit 0d41d58d27
4 changed files with 44 additions and 8 deletions
+7
View File
@@ -1,6 +1,13 @@
# frozen_string_literal: true
require "read_only"
class ForumsController < ActionController::Base
include ReadOnly
before_action :check_readonly_mode
after_action :add_readonly_header
def status
if $shutdown
render plain: 'shutting down', status: 500